Replies: 2 comments
-
谢谢分享,现在NexT主题对mermaid的支持比较完整了,因此不再需要第三方插件(反而会有兼容问题) |
Beta Was this translation helpful? Give feedback.
0 replies
-
正确的!谢谢你 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
在更新此版本后,发现原来能显示的 Mermaid 都显示不出来了,显示的是源码。
尝试新建了一个站点,并经过仔细的对比,发现了一个解决无法渲染问题的方法,即执行:
初步分析原因:在 8.20.0 中,因为代码块折叠之类的问题,因此也对 mermaid.js 等文件进行了更新(#347 #797)。上述插件是早期安装的,此次更新后不再兼容,在渲染过程中反而破坏了 DOM 结构,导致新版的选择器无法选中,因此卸载插件即可。
另外记得检查下
_config.yaml
是否配置了:其他信息:我的渲染器是 pandoc,本来怀疑是这个问题,但经过测试表明,与此无关。
排查了半天,分享一下,希望大家少走弯路。
Beta Was this translation helpful? Give feedback.
All reactions