Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML super/subscript tags not rendering in chart preview #93

Open
nleo575 opened this issue Sep 19, 2024 · 0 comments
Open

HTML super/subscript tags not rendering in chart preview #93

nleo575 opened this issue Sep 19, 2024 · 0 comments

Comments

@nleo575
Copy link

nleo575 commented Sep 19, 2024

I know that I can add HTML tags to format node labels. I tried to add a superscript tag (for example 10<sup>2</sup> for 102), but the preview is only showing extra whitespace where the superscripted text should be. If I go to export the chart as a png, the text displays correctly.

I'm using Safari on macOS to view the editor. It doesn't matter if I use the iOS or macOS version of Safari, the error still comes up.
The text renders fine if I put the same Mermaid code into the Mermaid Live editor in Safari.
Chrome browser renders the labels correctly too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant