File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change 11'use client' ;
2-
3- import { transformerNotationHighlight } from '@shikijs/transformers' ;
42import { Components , toJsxRuntime } from 'hast-util-to-jsx-runtime' ;
53import type { JSX } from 'react' ;
64import { Fragment , useLayoutEffect , useState } from 'react' ;
75import { jsx , jsxs } from 'react/jsx-runtime' ;
86import type { BundledLanguage } from 'shiki/bundle/web' ;
97import { CodeBlockComponent } from './Code' ;
8+ import { transformerNotationHighlight } from '@shikijs/transformers' ;
109
1110const highlight = async (
1211 code : string ,
Original file line number Diff line number Diff line change 1- import type { JSX } from 'react' ;
2- import type { BundledLanguage , DecorationItem } from 'shiki' ;
3- import { codeToHast } from 'shiki' ;
1+ import { transformerNotationHighlight } from '@shikijs/transformers' ;
42import { Components , toJsxRuntime } from 'hast-util-to-jsx-runtime' ;
3+ import type { JSX } from 'react' ;
54import { Fragment } from 'react' ;
65import { jsx , jsxs } from 'react/jsx-runtime' ;
7- import './Code.css' ;
6+ import type { BundledLanguage } from 'shiki' ;
7+ import { codeToHast } from 'shiki' ;
88import { CodeBlockComponent } from './Code' ;
9- import { transformerNotationHighlight } from '@shikijs/transformers ';
9+ import './Code.css ';
1010
1111interface Props {
1212 children : string ;
You can’t perform that action at this time.
0 commit comments