memorax-ai/dsh-render-engine--packages-mermaid-render ↗★ 1
@ch4acko3/dsh-mermaid-render
Safe Mermaid diagram rendering service for DeepSeek Harness Web plugins 适合需要在Web插件中动态生成和展示流程图、时序图等图表的开发者。
Other repositories with this package name
Install
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:memorax-ai/dsh-render-engine#9582bf138d3a6d7381a84359a4a0b878a1ea8952&path:packages/mermaid-renderREADME
Read the full README ↗@ch4acko3/dsh-mermaid-render
A browser-side Cordis service that renders untrusted Mermaid definitions as sanitized SVG diagrams.
export const inject = ['mermaidRenderer']
export async function apply(ctx) {
const result = await ctx.mermaidRenderer.render({
source: 'graph TD\n Parse --> Render',
})
console.log(result.html)
}
Mermaid runs with securityLevel: 'strict'; the generated SVG is sanitized again before it is returned. The service provides rendering only and does not ship a ChatView card or diagram editor.