Commit a76b86f1 authored by Steven's avatar Steven

chore: fix highlight code

parent ded80017
......@@ -12,7 +12,7 @@ interface Props extends BaseProps {
const CodeBlock: React.FC<Props> = ({ language, content }: Props) => {
const formatedLanguage = (language || "").toLowerCase() || "text";
let highlightedCode = hljs.highlightAuto(content).value;
let highlightedCode = content;
// Users can set Markdown code blocks as `__html` to render HTML directly.
if (formatedLanguage === "__html") {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment