webappdevelp / hexo-filter-mermaid-diagrams

mermaid diagrams for hexo
86 stars 27 forks source link

diagrams can't be always rendered well #17

Closed lucmann closed 1 month ago

lucmann commented 1 month ago

Description

I'm using hexo-theme-even for my blog. I'm wondering why some mermaid diagrams are rendered perfectly while others not. Even if the diagram is the same sometimes, it could be well-rendered irregularly.

I checked the resulting html and found out the base64 string of ill-formed svg is much shorter than one of those good.

I'm not familiar with javascript at all. Any help would be really appreciated.

Theme configuration

mermaid:
  version: "11.2.1"
  enable: true
  cdn: //cdn.jsdelivr.net/npm/mermaid@11.2.1/dist/mermaid.min.js
  theme: forest
  options:
    startOnload: true

Blog configuration

# Mermaid Chart
mermaid:
  enable: true
  version: "11.2.1"
  cdn: //cdn.jsdelivr.net/npm/mermaid@11.2.1/dist/mermaid.min.js
  theme: forest
  options:
    startOnload: true
lucmann commented 1 month ago

In the end it turns out that the hit-and-missing results are generated by another hexo plugin, hexo-filter-kroki. the mermaid in my hexo theme, hexo-theme-even, entirely doesn't work at all (looks like a pending feature). So I will close this issue, sorry for the noise.