Skip to main content

render_mermaid_preview

Function render_mermaid_preview 

Source
pub async fn render_mermaid_preview(source: String) -> Result<String, ApiError>
Expand description

后台编辑器的 Mermaid 预览(服务端渲染)。 渲染一张图,返回浅色、深色两份 SVG 的 HTML(mermaid-light / mermaid-dark 两个 div)。