Skip to content

Commit

Permalink
feat: Use react-shiki from package
Browse files Browse the repository at this point in the history
  • Loading branch information
AVGVSTVS96 committed Jan 27, 2025
1 parent 9a0d291 commit 4d807af
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
Binary file modified bun.lockb
Binary file not shown.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
"react-dom": "18.3.1",
"react-hotkeys-hook": "4.5.0",
"react-markdown": "9.0.1",
"react-shiki": "link:react-shiki",
"react-syntax-highlighter": "15.5.0",
"sharp": "0.33.4",
"shiki": "1.9.1",
Expand Down
2 changes: 1 addition & 1 deletion src/components/ChatUI/CodeHighlight.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { ReactNode } from 'react';
import type { Element } from 'hast';
import { isInlineCode } from '@/lib/utils';
import { useShikiHighlighter } from '@/lib/hooks';
import { useShikiHighlighter } from 'react-shiki';
import customTheme from '@styles/tokyo-night.mjs';

interface CodeHighlightProps {
Expand Down

0 comments on commit 4d807af

Please sign in to comment.