feature_render_plantuml #8
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature_render_plantuml"
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
PlantUML diagram rendering
Fenced
```plantumlblocks are now rendered as live SVG diagrams in the preview pane, alongside the existing Mermaid support. The diagram is fetched from the plantuml.com SVG endpoint. If the request fails or the syntax is invalid, the original code block is left in place.Changes
plantuml-encoderdependency and type declaration (src/lib/plantuml-encoder.d.ts) — encodes PlantUML source to the URL format expected by plantuml.comrenderPlantUmlBlockprivate helper indiagrams.ts— fetches SVG from plantuml.com, replaces the<pre>on success, throws on non-ok response (caught silently byrenderDiagrams)renderMermaidBlocksfromrenderDiagrams— reduces cyclomatic complexity to satisfy fallow's threshold@highlightjs/cdn-assetsdependencydiagram_rendering.featurefrom 3 individual Mermaid scenarios to 3 Scenario Outlines covering both Mermaid and PlantUMLQuality
StringLiteralsuppressed (error message always swallowed by caller, not observable through public API)Full diff:
master...feature_render_plantuml