fix: codeblock renderer (#924)

This commit is contained in:
boojack 2023-01-08 11:24:28 +08:00 committed by GitHub
parent 1847756ade
commit e29924c8a1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -38,7 +38,7 @@ const renderer = (rawStr: string) => {
> >
copy copy
</button> </button>
<code className={`language-${language}`}>{highlightedCode}</code> <code className={`language-${language}`} dangerouslySetInnerHTML={{ __html: highlightedCode }}></code>
</pre> </pre>
); );
}; };