fix(mathml): fixed flowchart equations being cut off
This commit is contained in:
parent
13aa3265e3
commit
7f33ae0f40
|
@ -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('')
|
||||
|
|
Loading…
Reference in New Issue