mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-22 07:49:26 +00:00
dynamically get prog lang name
This commit is contained in:
parent
0ab1fdcb9d
commit
7b47d59744
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ const Code = ({ className, ...code }: any) => {
|
||||||
if (className?.startsWith('language-'))
|
if (className?.startsWith('language-'))
|
||||||
return (
|
return (
|
||||||
<SyntaxHighlighter
|
<SyntaxHighlighter
|
||||||
language='json'
|
language={getProgrammingLanguageName(className)}
|
||||||
style={isDark ? materialDark : materialLight} // TODO: Update with code light/dark color themes
|
style={isDark ? materialDark : materialLight} // TODO: Update with code light/dark color themes
|
||||||
customStyle={{ borderRadius: '0.5rem', padding: '1rem' }}
|
customStyle={{ borderRadius: '0.5rem', padding: '1rem' }}
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue