Skip to content

Mermaid Directives are not recognized in HTML/Javascript diagram #4720

Closed Answered by obaqueiro
obaqueiro asked this question in Q&A
Discussion options

You must be logged in to vote

OK so GPT gave me the answer. Apparently directives %% are not parsed by the JS mermaid library but have to be setup using the initialize function.

I make the necessary changes and it works!

https://cdn.jsdelivr.net/gh/obaqueiro/mermaid-js-auto-renderer@main/mermaid-js-autorenderer.js

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by obaqueiro
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant