fralau / mkdocs-mermaid2-plugin

A Mermaid graphs plugin for mkdocs
https://mkdocs-mermaid2.readthedocs.io
MIT License
203 stars 25 forks source link

Markdown inside of node text is not rendering #89

Closed tarik-kafein closed 1 month ago

tarik-kafein commented 10 months ago

Hi,

When markdown is used inside a node text it generates perfectly on mermaid.live editor but not in mkdocs with this plugin installed. I tried with giving the latest verison as version: 10.4.0

Below you can see an example to test it. The text inside nodeC gets rendered as is an not with markdown.

graph LR
    nodeA{nodeA} --> nodeB[nodeB]
    nodeB --> nodeC("`**nodeC**`")

I also added the following to mkdocs.yml markdown_extensions

- pymdownx.superfences:
      custom_fences:
        - name: mermaid
          class: mermaid
          format: !!python/name:mermaid2.fence_mermaid_custom

Can you help me please?

github-actions[bot] commented 10 months ago

Thank you for your contribution! This is very appreciated.

fralau commented 9 months ago

The best advice is to follow the steps in that case. Let me know the results?