Question: How to activate mermaid from chunk* file? #9089
Replies: 2 comments 1 reply
-
mermaid diagrams are activated with |
Beta Was this translation helpful? Give feedback.
-
The solutionIf you use markdig and set the docfx.config to use feature diagram (build/markdownEngineProperties/markdigExtensions/diagrams, then a fenced code block with the mermaid language info will output a <div class='mermaid'> instead of a pre/code block. If the diagram extension is removed, then the internal handling automatically activates the mermaid drawing by building a pre/code.lang-mermaid block. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I've been using the classic template before. To get mermaid working, I had overwritten
scripts.tmpl.partial
like this:With the modern template, the mermaid module is included in a chunk* file. Is there a way to tell docfx to activate it and handle the resulting
<div class="mermaid">
?Beta Was this translation helpful? Give feedback.
All reactions