fix issues related to syntax highlighting

This commit is contained in:
keyan 2023-10-06 18:51:38 -05:00
parent 9aa8d8a688
commit 91ccc80a97
1 changed files with 2 additions and 2 deletions

View File

@ -86,12 +86,12 @@ export default memo(function Text ({ nofollow, imgproxyUrls, children, tab, ...o
const Code = useCallback(({ node, inline, className, children, style, ...props }) => {
return inline
? (
<code className={className} style={atomDark} {...props}>
<code className={className} {...props}>
{children}
</code>
)
: (
<SyntaxHighlighter showLineNumbers style={atomDark} PreTag='div' {...props}>
<SyntaxHighlighter style={atomDark} language='text' PreTag='div' {...props}>
{children}
</SyntaxHighlighter>
)