Implement dark mode support for mermaid. #38
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Supporting dark theme on mermaid is a relatively easy fix that should be supported out of the box. All the changes required would be in mermaid-init.js, and could be changed by the end user if required.
It would be as simple as reading the class appended to the HTML field and choosing mermaid's theme accordingly before initializing it.
@badboy : do you see any issues here? Seems like @AnthonyTornetta has addressed concerns expressed here: https://github.com/badboy/mdbook-mermaid/issues/35#issuecomment-1614564202
I don't know. I won't have time to look into this, maybe after the holidays.