Closed lewismiddleton closed 6 months ago
Adding a fence_mermaid_custom
format to superfences as per mermaid2 plugin Material theme config didn't seem to change behaviour but seems like is best practice if you want the diagrams to inherit styling from any theming you choose.
plugins:
- mermaid2
markdown_extensions:
- pymdownx.superfences:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:mermaid2.fence_mermaid_custom
All modified and coverable lines are covered by tests :white_check_mark:
Project coverage is 85.79%. Comparing base (
7e869d8
) to head (4bbc5a9
).
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Add the plugin as a dependency as per installation guide.
poetry add mkdocs-mermaid2-plugin --group docs
Add to the
mkdocs.yml
via plugins syntaxThis on it's own is sufficient to get the diagrams to render.
Resolves: #567