dynamically get prog lang name

This commit is contained in:
Paul Wackerow 2022-11-21 15:41:38 -08:00
parent 0ab1fdcb9d
commit 7b47d59744
No known key found for this signature in database
GPG Key ID: BB63E296FE9CAB8D
1 changed files with 1 additions and 1 deletions

View File

@ -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' }}
>