pymdownx.superfences prevents HTML from being interpreted in diagrams
See original GitHub issueHyperlinks, bold, etc. in diagrams stop working, when superfences are activated according to instructions.
This issue occurs when all conditions are satisfied:
- Loose mode activated (allow HTML to be interpreted in diagrams).
- pymdownx.superfences is activated.
In mkdocs.yml
:
plugins:
- ...
- mermaid2:
arguments:
securityLevel: 'loose'
markdown_extensions:
- ...
- ...
- pymdownx.superfences:
# make exceptions to highlighting of code:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:pymdownx.superfences.fence_div_format
Issue Analytics
- State:
- Created 3 years ago
- Comments:36 (19 by maintainers)
Top Results From Across the Web
SuperFences - PyMdown Extensions Documentation
Ability to specify custom fences to provide features like flowcharts, sequence diagrams, or other custom blocks. Allow disabling of indented ...
Read more >Markdown: How to prevent HTML tags from being interpreted
I am trying to make html tags to appear in a textarea using markdown extra. For example, I would like to have. <h2>Title...
Read more >Change Mermaid theme in markdown - Stack Overflow
I use mermaid for basic diagram rendering within my ...
Read more >uncategorized - source - blog - blog-posts - 2022-03 ... - GitLab
2022-03-15-publishing-obsidian-notes-with-gitlab-pages.html.md.erb ... use symbols inside the text that are interpreted as text formatting.
Read more >mkdocs-mermaid2-plugin 0.6.0 on PyPI - Libraries.io
A MkDocs plugin for including mermaid graphs in markdown sources - 0.6.0 - a Python ... in the HTML pages, which starts the...
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
Example of idiosyncracy: mermaid does not accept a box called
default
.Unless someone strongly opposes, I’m going to close this issue.
Glad you got it figured out.