mirror of
https://github.com/usememos/memos.git
synced 2025-02-22 12:22:59 +08:00
chore: update code block styles
This commit is contained in:
parent
f05a89315c
commit
8c6292925e
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue