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

Allow embedding svg directly into the HTML document #104

Open
multimeric opened this issue Jan 11, 2023 · 1 comment
Open

Allow embedding svg directly into the HTML document #104

multimeric opened this issue Jan 11, 2023 · 1 comment

Comments

@multimeric
Copy link

At the moment, pandoc -t html -F mermaid-filter -o output.html input.md always outputs the diagram inside an <img> element. It might be nice to add a setting that puts it into an <svg> element so it can be affected by CSS and JS on the page.

@raghur
Copy link
Owner

raghur commented Dec 25, 2023

Can you try out master branch? One issue I see is that the way mermaid generates ids breaks theming (last one wins)

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

2 participants