question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pymdownx.superfences prevents HTML from being interpreted in diagrams

See original GitHub issue

Hyperlinks, bold, etc. in diagrams stop working, when superfences are activated according to instructions.

This issue occurs when all conditions are satisfied:

  1. Loose mode activated (allow HTML to be interpreted in diagrams).
  2. 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:closed
  • Created 3 years ago
  • Comments:36 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
fralaucommented, Jun 16, 2020

Example of idiosyncracy: mermaid does not accept a box called default.

Unless someone strongly opposes, I’m going to close this issue.

1reaction
facelessusercommented, Jun 6, 2020

Glad you got it figured out.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found