Skip to content

Commit

Permalink
Use Shiki for code highlighting, add language label to code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
AVGVSTVS96 committed Jun 29, 2024
1 parent 73a3a47 commit 247cf44
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/components/ChatUI/CodeHighlight.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,7 @@ export const CodeHighlight = ({
{language}
</span>
) : null}
<SyntaxHighlighter
className='rounded-lg py-5!'
language={language}
style={rainglowAzureContrast as SyntaxHighlighterProps['style']}
PreTag='div'
{...props}>
{String(children).trimEnd()}
</SyntaxHighlighter>
{highlightedCode}
</div>
) : (
<code className={className} {...props}>
Expand Down

0 comments on commit 247cf44

Please sign in to comment.