Skip to main content

Module mermaid_preview

Module mermaid_preview 

Source
Expand description

后台编辑器的 Mermaid 预览:与文章保存时同一套服务端渲染。

Structs§

RenderMermaidPreview
Serialized arguments for the render_mermaid_preview server function.

Constants§

MAX_SOURCE_LEN 🔒
预览源码长度上限(字节)。

Functions§

render_mermaid_preview
渲染一张图,返回浅色、深色两份 SVG 的 HTML(mermaid-light / mermaid-dark 两个 div)。