Skip to content

Commit fe3d995

Browse files
committed
fix: fixing the stuff
1 parent 990b282 commit fe3d995

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

lib/Code/Code.Client.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
'use client';
2-
3-
import { transformerNotationHighlight } from '@shikijs/transformers';
42
import { Components, toJsxRuntime } from 'hast-util-to-jsx-runtime';
53
import type { JSX } from 'react';
64
import { Fragment, useLayoutEffect, useState } from 'react';
75
import { jsx, jsxs } from 'react/jsx-runtime';
86
import type { BundledLanguage } from 'shiki/bundle/web';
97
import { CodeBlockComponent } from './Code';
8+
import { transformerNotationHighlight } from '@shikijs/transformers';
109

1110
const highlight = async (
1211
code: string,

lib/Code/Code.Server.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import type { JSX } from 'react';
2-
import type { BundledLanguage, DecorationItem } from 'shiki';
3-
import { codeToHast } from 'shiki';
1+
import { transformerNotationHighlight } from '@shikijs/transformers';
42
import { Components, toJsxRuntime } from 'hast-util-to-jsx-runtime';
3+
import type { JSX } from 'react';
54
import { Fragment } from 'react';
65
import { jsx, jsxs } from 'react/jsx-runtime';
7-
import './Code.css';
6+
import type { BundledLanguage } from 'shiki';
7+
import { codeToHast } from 'shiki';
88
import { CodeBlockComponent } from './Code';
9-
import { transformerNotationHighlight } from '@shikijs/transformers';
9+
import './Code.css';
1010

1111
interface Props {
1212
children: string;

0 commit comments

Comments
 (0)