dynamically get prog lang name

pull/26459/head^2
Paul Wackerow 2 years ago
parent 0ab1fdcb9d
commit 7b47d59744
No known key found for this signature in database
GPG Key ID: BB63E296FE9CAB8D
  1. 2
      src/components/MDXComponents.tsx

@ -83,7 +83,7 @@ const Code = ({ className, ...code }: any) => {
if (className?.startsWith('language-'))
return (
<SyntaxHighlighter
language='json'
language={getProgrammingLanguageName(className)}
style={isDark ? materialDark : materialLight} // TODO: Update with code light/dark color themes
customStyle={{ borderRadius: '0.5rem', padding: '1rem' }}
>

Loading…
Cancel
Save