mirror of
https://github.com/go-gitea/gitea.git
synced 2025-10-24 17:14:30 +02:00
Remove mermaid margin workaround (#35732)
https://github.com/mermaid-js/mermaid/issues/4907 was fixed with mermaid v11, so we no longer need to ship this workaround. The test case works as expected: <img width="244" height="58" alt="image" src="https://github.com/user-attachments/assets/439616e9-4883-47fb-bf18-21ca86cb5da6" />
This commit is contained in:
parent
195fc715ff
commit
8085c75356
@ -6,11 +6,9 @@ import {html, htmlRaw} from '../utils/html.ts';
|
|||||||
|
|
||||||
const {mermaidMaxSourceCharacters} = window.config;
|
const {mermaidMaxSourceCharacters} = window.config;
|
||||||
|
|
||||||
// margin removal is for https://github.com/mermaid-js/mermaid/issues/4907
|
|
||||||
const iframeCss = `:root {color-scheme: normal}
|
const iframeCss = `:root {color-scheme: normal}
|
||||||
body {margin: 0; padding: 0; overflow: hidden}
|
body {margin: 0; padding: 0; overflow: hidden}
|
||||||
#mermaid {display: block; margin: 0 auto}
|
#mermaid {display: block; margin: 0 auto}`;
|
||||||
blockquote, dd, dl, figure, h1, h2, h3, h4, h5, h6, hr, p, pre {margin: 0}`;
|
|
||||||
|
|
||||||
export async function initMarkupCodeMermaid(elMarkup: HTMLElement): Promise<void> {
|
export async function initMarkupCodeMermaid(elMarkup: HTMLElement): Promise<void> {
|
||||||
// .markup code.language-mermaid
|
// .markup code.language-mermaid
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user