Commit f90c45ec authored by heesun's avatar heesun
Browse files

fix shikierror

parent 96f725da
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -108,10 +108,10 @@ interface CodeBlockProps {
  code: string;
}

const highlighter = await getSingletonHighlighter({
  themes: ["github-light"],
  langs: ["http", "json"],
});
const highlighter = await getSingletonHighlighter();
await highlighter.loadTheme("github-light");
await highlighter.loadLanguage("http");
await highlighter.loadLanguage("json");

const CodeBlock: FC<CodeBlockProps> = ({ language, code }: CodeBlockProps) => {
  const result = highlighter.codeToHtml(code, {