mirror of
https://github.com/usememos/memos.git
synced 2025-02-19 12:50:41 +01:00
chore: update code block styles
This commit is contained in:
parent
f05a89315c
commit
8c6292925e
@ -17,7 +17,7 @@ const CodeBlock: React.FC<Props> = ({ language, content }: Props) => {
|
||||
|
||||
// Users can set Markdown code blocks as `__html` to render HTML directly.
|
||||
if (formatedLanguage === "__html") {
|
||||
return <div className="w-full !my-2" dangerouslySetInnerHTML={{ __html: content }} />;
|
||||
return <div className="w-full overflow-auto !my-2" dangerouslySetInnerHTML={{ __html: content }} />;
|
||||
}
|
||||
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user