pub async fn render_mermaid_preview(source: String) -> Result<String, ApiError>
后台编辑器的 Mermaid 预览(服务端渲染)。 渲染一张图,返回浅色、深色两份 SVG 的 HTML(mermaid-light / mermaid-dark 两个 div)。
mermaid-light
mermaid-dark