Commit 1af9fffa authored by Moreal's avatar Moreal
Browse files

Fix typo

parent fd936aeb
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -103,13 +103,13 @@ interface CodeBlockProps {
  code: string;
}

const highligher = await getHighlighter({
const highlighter = await getHighlighter({
  themes: ["github-light"],
  langs: ["http", "json"],
});

const CodeBlock: FC<CodeBlockProps> = ({ language, code }: CodeBlockProps) => {
  const result = highligher.codeToHtml(code, {
  const result = highlighter.codeToHtml(code, {
    lang: language,
    theme: "github-light",
  });