Support Mermaid's callback configuration
See original GitHub issueMermaid has the ability (see src/mermaid.js) to invoke a user-configured callback function as it renders each diagram:
mermaid.initialize({
startOnLoad: true,
mermaid: {
callback: function(id) {
// ...
},
},
});
This is invaluable for doing any number of things on Mermaid diagrams that simply cannot be done with CSS.
Right now, I don’t see any way to configure a Mermaid callback function in this plugin. Could that be supported in the plugin configuration? The obvious way would seem to be as follows:
plugins:
- mermaid2:
arguments:
theme: neutral
callback: myMermaidCallbackFunction
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:14 (8 by maintainers)
Top Results From Across the Web
mermaid - Generation of diagrams and flowcharts from text in ...
Using the mermaid.init call. Is it possible to set some configuration via the mermaid object. The two parameters that are supported using this...
Read more >Mermaid | Diagramming and charting tool
JavaScript based diagramming and charting tool that renders Markdown-inspired text definitions to create and modify diagrams dynamically.
Read more >How to use the mermaid.mermaidAPI.render function in ... - Snyk
To help you get started, we've selected a few mermaid. ... merge(defaultConfig, config) mermaidAPI.initialize(mermaidConfig) const doc = children.
Read more >Rendering Mermaid Charts - Markdown Monster Documentation
Enable Mermaid Rendering (Tools | Settings | Mermaid Diagrams) · You may have to restart Markdown Monster for the change in settings to...
Read more >Using Mermaid Flowcharts In Obsidian ♀️️ - YouTube
CHECK THESE OUT ◀︎▭▭▭▭▭▭▭▭▭▭📧️ NEWSLETTER: https://bryanjenkstech.ck.page/d4ec0713d5 DISCORD: https://discord.gg/MxCVshN🗣️ ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s now published on pypi under 0.3.1.
Great! That works 👍
Hmm, I can’t recall. Probably from examples in the wild, or Mermaid issues.
Sure, I think that’d be nice for all those users who don’t plan to add any other custom JS.