mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-25 10:20:06 +02:00
fix(mathml): fixed flowchart equations being cut off
This commit is contained in:
@@ -347,9 +347,7 @@ export const renderKatex = async (text: string, config: MermaidConfig): Promise<
|
|||||||
.split(lineBreakRegex)
|
.split(lineBreakRegex)
|
||||||
.map((line) =>
|
.map((line) =>
|
||||||
hasKatex(line)
|
hasKatex(line)
|
||||||
? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
|
? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${line}</div>`
|
||||||
${line}
|
|
||||||
</div>`
|
|
||||||
: `<div>${line}</div>`
|
: `<div>${line}</div>`
|
||||||
)
|
)
|
||||||
.join('')
|
.join('')
|
||||||
|
Reference in New Issue
Block a user