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

Merge pull request #75 from moreal/typo

Fix typo

[ci skip]
parents fd936aeb 1af9fffa
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",
  });