Skip to content

Commit 72b3eeb

Browse files
authored
Merge branch 'main' into fix-render-iframe
2 parents 7ac96f3 + 8085c75 commit 72b3eeb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

web_src/js/markup/mermaid.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,9 @@ import {html, htmlRaw} from '../utils/html.ts';
66

77
const {mermaidMaxSourceCharacters} = window.config;
88

9-
// margin removal is for https://github.com/mermaid-js/mermaid/issues/4907
109
const iframeCss = `:root {color-scheme: normal}
1110
body {margin: 0; padding: 0; overflow: hidden}
12-
#mermaid {display: block; margin: 0 auto}
13-
blockquote, dd, dl, figure, h1, h2, h3, h4, h5, h6, hr, p, pre {margin: 0}`;
11+
#mermaid {display: block; margin: 0 auto}`;
1412

1513
export async function initMarkupCodeMermaid(elMarkup: HTMLElement): Promise<void> {
1614
// .markup code.language-mermaid

0 commit comments

Comments
 (0)