Unverified Commit cf3769f5 authored by Hong Minhee (洪 民憙)'s avatar Hong Minhee (洪 民憙) Committed by GitHub
Browse files

Merge pull request #185 from Heesunni/ShikiError

parents 2351d09f f90c45ec
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, {