Expand description
后台编辑器的 Mermaid 预览:与文章保存时同一套服务端渲染。
Structs§
- Render
Mermaid Preview - Serialized arguments for the
render_mermaid_previewserver function.
Constants§
- MAX_
SOURCE_ 🔒LEN - 预览源码长度上限(字节)。
Functions§
- render_
mermaid_ preview - 渲染一张图,返回浅色、深色两份 SVG 的 HTML(
mermaid-light/mermaid-dark两个 div)。