feature_render_mermaid #6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature_render_mermaid"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What's new
Mermaid diagram rendering
Fenced
mermaidcode blocks in the preview are now rendered as live SVG diagrams. Write a diagram definition in your markdown and it appears as a rendered graphic in the right-hand pane — no extra steps required.Graceful fallback
If the diagram definition contains a syntax error, the original fenced code block is preserved as-is. The rest of the preview is unaffected.
Changes
src/lib/diagrams.ts— locateslanguage-mermaidcode blocks and replaces them with the SVG returned bymermaid.render()applyPreviewEffects(src/lib/preview.ts) is now async to accommodate the diagram render stepApp.svelteupdated to handle the async preview pipelinemermaidnpm dependencyQuality
Full diff:
master...feature_render_mermaid