mirror of
https://github.com/run-llama/create-llama.git
synced 2026-07-16 03:04:21 -04:00
[PR #347] [MERGED] fix: enhance performance for codeblock #440
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/run-llama/create-llama/pull/347
Author: @thucpn
Created: 10/7/2024
Status: ✅ Merged
Merged: 10/15/2024
Merged by: @marcusschiesser
Base:
main← Head:fix/enhance-performance-for-code-block📝 Commits (7)
cfa52ddfix: enhance performance for codeblockde9d816Merge branch 'main' into fix/enhance-performance-for-code-blockbdc59effix: use highlight.js instead of react-syntax-hightlightere6f01dafix: custom fontdba4f3bfix: package deps3fd0aa5fix: add margin991a613Update templates/types/streaming/nextjs/app/components/ui/chat/chat-message/codeblock.tsx📊 Changes
4 files changed (+25 additions, -38 deletions)
View changed files
📝
helpers/typescript.ts(+1 -6)📝
templates/types/streaming/nextjs/app/components/ui/chat/chat-message/codeblock.tsx(+21 -29)📝
templates/types/streaming/nextjs/app/components/ui/chat/chat-message/markdown.tsx(+1 -0)📝
templates/types/streaming/nextjs/package.json(+2 -3)📄 Description
Currently, asking AI for generating inline code will make browser tag so lag.
The root cause is may because react-syntax-highlight re-render too many times.
Summary by CodeRabbit
New Features
highlight.js.Bug Fixes
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.