fix(mathml): fixed flowchart equations being cut off

This commit is contained in:
NicolasNewman 2024-04-22 17:15:10 -05:00
parent 13aa3265e3
commit 7f33ae0f40
1 changed files with 1 additions and 3 deletions

View File

@ -347,9 +347,7 @@ export const renderKatex = async (text: string, config: MermaidConfig): Promise<
.split(lineBreakRegex)
.map((line) =>
hasKatex(line)
? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">
${line}
</div>`
? `<div style="display: flex; align-items: center; justify-content: center; white-space: nowrap;">${line}</div>`
: `<div>${line}</div>`
)
.join('')