Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

是否有 mermaid 支持? #299

Open
lucmann opened this issue Sep 20, 2024 · 1 comment
Open

是否有 mermaid 支持? #299

lucmann opened this issue Sep 20, 2024 · 1 comment

Comments

@lucmann
Copy link

lucmann commented Sep 20, 2024

描述

不知道是网络原因,还是其它问题,mermaid diagram 有时渲染得出来,有时却出不来(同一个 diagram)

image

主题配置

mermaid:
  version: "11.2.1"
  enable: true
  theme: forest
  options:
    startOnload: true

mermaid.swig

{%- if theme.mermaid.enable -%}
  <script src='https://unpkg.com/mermaid@{{ theme.mermaid.version }}/dist/mermaid.min.js'></script>
  <script>
    if (window.mermaid) {
      mermaid.initialize({{ JSON.stringify(theme.mermaid.options) }});    
    }
  </script>
{%- endif -%}
@lucmann lucmann changed the title mermaid 渲染时好时坏 是否有 mermaid 支持? Sep 27, 2024
@lucmann
Copy link
Author

lucmann commented Sep 27, 2024

mermaid diagrams 时好时坏的原因是我安装的另一个 hexo 插件 hexo-filter-kroki 渲染的结果, 将其移除后,mermaid 完全渲染不了, 100% 纯文本了。这似乎说明目前的 hexo-theme-even 没有支持 mermaid, 但是我又看到 #166, 所以不确定到底支持不支持 mermaid.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant