chore: update prompts for code block language

This commit is contained in:
steven
2023-03-28 10:03:27 +08:00
parent 21184e01c3
commit c32a971bf2
3 changed files with 7 additions and 4 deletions

View File

@ -37,7 +37,7 @@ export const CodeBlock = (props: Props) => {
</button>
</div>
</div>
<SyntaxHighlighter language={language} style={oneDark} customStyle={{ margin: 0 }}>
<SyntaxHighlighter language={language.toLowerCase()} style={oneDark} customStyle={{ margin: 0 }}>
{value}
</SyntaxHighlighter>
</div>