Skip to content

Commit

Permalink
Desktop,Mobile: Fixes laurent22#10785: Fix math is invisible in certa…
Browse files Browse the repository at this point in the history
…in mermaid diagrams
  • Loading branch information
personalizedrefrigerator committed Aug 3, 2024
1 parent 5c8be44 commit d9eb07b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/renderer/MdToHtml/rules/mermaid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default {
inline: true,
// Override the default pre styles. Using the default `white-space: pre`
// can cause math expressions to be too tall and break some diagrams.
text: 'pre.mermaid > svg { white-space: unset; }',
text: 'pre.mermaid[data-processed=true] { white-space: unset; }',
mime: 'text/css',
},
{
Expand Down

0 comments on commit d9eb07b

Please sign in to comment.