Closed fralau closed 1 year ago
As a side note, I tested the same diagram with Material, including with dark mode, and it doesn't give the same issue.
The code block is slightly squashed, but this is also a minor issue.
It also works perfectly with Mermaid2, which is a side bonus.
site_name: My Docs
theme:
# name: readthedocs
name: material
language: en
palette:
scheme: slate
primary: red
accent: pink
markdown_extensions:
- pymdownx.superfences:
# make exceptions to highlighting of code:
custom_fences:
- name: mermaid
class: mermaid
format: !!python/name:mermaid2.fence_mermaid_custom
plugins:
- search
- markmap
- mermaid2:
version: '10.1.0'
Here is the Mermaid code:
```mermaid
graph LR
hello --> world
world --> again
again --> hello
Thanks for this interesting plugin! I am @fralau, the maintainer of the mermaid2 plugin. I believe that the idea of using markdown to represent mindmaps is sensible, and that the concept appears more mature than Mermaid minmaps!
Since it worked out of the box 👍 , I threw the whole demo diagram from markmap.js.org at it. It also worked immediately, so 👍 again!
Just a minor issue, the inline code is printed vertically:
(I also appreciated that it works directly with pymdownx.superfences, out of the box).