Skip to content

ui: @trick77/diagram 0.1.8 - #401

Merged
trick77 merged 1 commit into
masterfrom
diagram-015
Nov 22, 2026
Merged

trick77 merged 1 commit into
masterfrom
diagram-015

Conversation

@trick77

@trick77 trick77 commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Takes @trick77/diagram 0.1.8. The mermaid fallback refuses a source that could make the browser fetch on render (an image in node data, a url() in a style, HTML that loads), re-checks the rendered SVG and locks its config; a directive's config is dropped as inert. A refused fence shows as the existing "Diagram could not be drawn" details, now with the package's reason above the source, so a refusal reads apart from a parse error.

A stored JSON spec has no size cap and may reach the renderer: its labels are written for drawing with URLs, slashes and backslashes broken up (toDrawing), so one such label no longer costs the picture; the clipboard keeps them as written. New tests run the real draw: code words like ResolveURL( and generics draw, a loading style is refused with its reason.

@trick77 trick77 changed the title ui: @trick77/diagram 0.1.5 ui: @trick77/diagram 0.1.7 Nov 22, 2026
@trick77
trick77 marked this pull request as draft November 22, 2026 18:40
The mermaid fallback now refuses a source that could make the browser
fetch on render and shows it as code. The card says why a diagram was
not drawn, so a refusal reads apart from a parse error. A stored JSON
spec has no size cap and may reach the renderer: its labels are written
for drawing with URLs, slashes and backslashes broken up, so one such
label no longer costs the picture; the clipboard keeps them as written.
@trick77 trick77 changed the title ui: @trick77/diagram 0.1.7 ui: @trick77/diagram 0.1.8 Nov 22, 2026
@trick77
trick77 marked this pull request as ready for review November 22, 2026 18:51
@trick77
trick77 merged commit dbeda34 into master Nov 22, 2026
1 check passed
@trick77
trick77 deleted the diagram-015 branch November 22, 2026 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant