Skip to content

SVG flatten: Viewer API, canvasnet flatten command and Pandoc filter support for composite SVGs - #130

Merged
Malcolmnixon merged 12 commits into
mainfrom
feature/svg-flatten
Nov 11, 2026
Merged

Malcolmnixon merged 12 commits into
mainfrom
feature/svg-flatten

Conversation

@Malcolmnixon

@Malcolmnixon Malcolmnixon commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

Pull Request

Description

This adds SVG flatten, so a composite SVG (an SVG whose <image href> links Mermaid, OpenSCAD, Vega-Lite, PDF, PPTX or VSDX) shows up in the docs PDF. Plain SVGs stay fully vector.

The problem: the docs pipeline is Pandoc → HTML → WeasyPrint → PDF. WeasyPrint draws plain SVGs as vectors, but it can't draw an <image href="flow.mmd">. So composite SVGs, such as the composition dashboard from #128, came out as empty panels.

The design (approved in review): the logic lives in the Viewer library, the CLI is a thin command, and the filter is a few lines.

  • Viewer (DemaConsulting.CanvasNet.Viewer.Imaging): SvgFlattener.Execute(SourceInfo, FlattenRequest) returns a FlattenResult.
    • It draws the SVG once through the existing SVG image resolver, with a recording wrapper around it. The renderer already supplies each image's placement size after viewBox, transforms and preserveAspectRatio.
    • Every link CanvasNet draws and a plain renderer can't is rendered at that size × Scale through the existing sandbox, fragments, budgets and loop protection. That includes .mmd, .scad, .vl.json, .pdf#page=, .pptx, .vsdx, and SVGs that themselves link these.
    • Only those href/xlink:href values are replaced, with data:image/png;base64,.... Everything else is copied byte for byte.
    • The result lists the replaced and rebased links plus diagnostics. Flattened == false means nothing was replaced, so keep the original.
  • CLI: canvasnet flatten <in.svg> -o <out.svg> [--scale N] [--strict] [--no-clobber] [--json]. Its JSON has render's shape plus flattened, replaced[] and rebased[]. It has a help topic, enforced against the user guide by the drift test.
  • Pandoc filter (canvasnet.lua, FILTER_VERSION 11):
    • It calls canvasnet flatten only when an .svg picture links a CanvasNet format; a plain SVG never even starts the tool.
    • The cache key includes the linked files' fingerprints, scale, the tool version and the drawing's folder.
  • Docs: Mermaid guide Example 56 now shows the composition dashboard inline. Requirements, design, verification, SysML2, review sets and the user guide sections are added.

Before / after (page 1 of the WeasyPrint 70 PDF, rendered by CanvasNet at 110 dpi)
before: empty panels; after: frame and text vector, four panels drawn

Limits:

  • Input must be UTF-8; an SVG with a DOCTYPE is refused, the same as render refuses it.
  • Only <image> links are replaced; external <use>, CSS url() and feImage are left as written.
  • A link that is never drawn stays a link, with the svg-flatten-image-not-drawn warning.
  • Caps: 64 pictures, 4 levels of nesting, 64 million pixels, and a 64 MiB output.
  • data: links in the input are never followed.
  • When the copy goes to another folder, relative raster links are rebased so they still resolve.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Code quality improvement

Related Issues

There is no issue to close; this was requested in review, as option B of the docs-filter SVG discussion.

Pre-Submission Checklist

Before submitting this pull request, ensure you have completed the following:

Build and Test

  • Code builds successfully and all tests pass: pwsh ./build.ps1 passed (72,576 tests, 0 failed, 33 skipped symbolic-link tests)
  • Code produces zero warnings

Code Quality

  • New code has appropriate XML documentation comments
  • Static analyzer warnings have been addressed

Quality Checks

Please run the following checks before submitting:

  • All linters pass: pwsh ./lint.ps1 passed (exit 0)
  • docs/filters/test-canvasnet.ps1 passed. It covers:
    • a plain SVG left untouched;
    • composite and nested composite SVGs flattened;
    • cache reuse, and invalidation on a new scale or an edited link;
    • a dotnet weasyprint end-to-end check.

Testing

  • Added unit tests for new functionality
  • Updated existing tests if behavior changed
  • All tests follow the AAA (Arrange, Act, Assert) pattern
  • Test coverage is maintained or improved

Documentation

  • Updated README.md (if applicable). Not applicable.
  • Updated docs/ documentation (if applicable)
  • Added code examples for new features (if applicable)
  • Updated requirements.yaml (if applicable)

Additional Notes

Option C, vector SVG/PDF output writers that would keep Mermaid and Vega-Lite vector inside composites, stays on the backlog.

Malcolm Nixon and others added 8 commits November 10, 2026 16:35
… an SVG with PNG data URIs

SvgFlattener.Execute(SourceInfo, FlattenRequest) draws an SVG once with the resolver of render, records the links the drawing shows at their placement size, draws the Mermaid, OpenSCAD, Vega-Lite, PDF, PPTX, and VSDX links (and nested SVG files that link them) as PNG pictures, and writes a copy in which only those href values change. Relative links that are left are rebased when the copy is in another folder. Unit, subsystem, and system tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
flatten <in.svg> -o <out.svg> [--scale N] [--strict] [--no-clobber] is a thin front end of SvgFlattener with a text and a JSON result; nothing to flatten writes nothing and exits 0. The svg help topic gets a flatten section (mirrored by the Flatten Reference table of the user guide, checked by a drift test), the svg-flatten-image-not-drawn diagnostic, and a command example; the json and limits topics and the formats footer mention the command.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
An .svg picture whose image elements link a model, chart, diagram, or document page (directly or through nested SVG files) now points at a copy written by canvasnet flatten into docs/generated/canvasnet/, cached by a hash of the drawing and every file it links and honoring scale; a plain SVG is left alone without starting the tool, and a drawing with nothing to flatten leaves a .plain marker. FILTER_VERSION is 10. test-canvasnet.ps1 covers plain, composite, nested, hidden, cache, and scale cases, and checks with WeasyPrint that the flattened diagram reaches the PDF.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
… guide sections for SVG flatten

New units SvgFlattener (Viewer Imaging) and FlattenCommand (Tool Commands) with their reqstream requirements, design and verification documents, SysML2 part definitions, and review sets; the subsystem and system requirements, designs, verification documents, SysML2 models, and introductions list them. The tool, Viewer, and SVG user guides and the README describe the flatten command, the library operation, and the Pandoc filter support; xlink is added to the spelling dictionary.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…VG flatten

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…, JSON page

- canvasnet.lua: include the drawing's folder (relative to the cache folder) in the
  flatten cache key, so the same drawing in another folder gets its own copy whose
  rebased links lead to that folder; test-canvasnet.ps1 checks a moved drawing.
- SvgFlattener.RebaseLink: leave a link whose decoded path has a null character, or
  that the file system cannot resolve (too long), as written instead of throwing.
- flatten --json: write a diagnostic's page, as render does.
- NamespaceDoc names SvgFlattener, FlattenRequest, and FlattenResult; Example 56 of
  the Mermaid guide states the picture size precisely; .reviewmark.yaml spacing.
- Requirements, design, verification, and user guide updated with the new tests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings November 10, 2026 23:39

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Three active moderate findings remain: the SVG dependency scan mishandles XML syntax and missing targets, and repeated links can render at a smaller placement than required.

3 open issues
What changed in this PR

This pull request adds SVG flattening across the Viewer library, the canvasnet flatten command, and the Pandoc documentation filter, rendering composite SVG links to CanvasNet-only formats as PNG data URIs while preserving vector content and ordinary links.

Changes:

  • Added the SvgFlattener API, placement-aware recording, link rewriting and rebasing, diagnostics, resource limits, and tests.
  • Added and registered the canvasnet flatten command with text and JSON output, help topics, documentation, and integration tests.
  • Updated the Pandoc filter to detect composite SVGs, invoke and cache flattening, track dependencies, and support WeasyPrint output.
  • Added corresponding requirements, design, verification, SysML2, user-guide, README, and review artifacts.
File Description
test/​DemaConsulting.CanvasNet.Viewer.Tests/​Imaging/​SvgFlattenerLinkTests.cs Tests SVG link scanning, raw spans, entities, and path rebasing.
test/​DemaConsulting.CanvasNet.Viewer.Tests/​Imaging/​ImagingSubsystemTests.cs Adds subsystem coverage for composite SVG flattening.
test/​DemaConsulting.CanvasNet.Viewer.Tests/​CanvasNetViewerSystemIntegrationTests.cs Verifies flattened SVG output through the Viewer integration path.
test/​DemaConsulting.CanvasNet.Tool.Tests/​Commands/​HelpTopicsTests.cs Verifies flatten help parity and diagnostic identifiers.
test/​DemaConsulting.CanvasNet.Tool.Tests/​Commands/​FlattenCommandTests.cs Tests command options, output, JSON, diagnostics, strict mode, and errors.
test/​DemaConsulting.CanvasNet.Tool.Tests/​Commands/​CommandsSubsystemTests.cs Tests default command registration and help integration.
test/​DemaConsulting.CanvasNet.Tool.Tests/​Commands/​CommandRegistryTests.cs Updates expected command registration order.
test/​DemaConsulting.CanvasNet.Tool.Tests/​CanvasNetToolTests.Flatten.cs Adds real-process tests for the flatten command.
src/​DemaConsulting.CanvasNet.Viewer/​Imaging/​SvgFlattener.Recorder.cs Records rendered image placements and captures replacement PNGs.
src/​DemaConsulting.CanvasNet.Viewer/​Imaging/​SvgFlattener.Links.cs Scans, rewrites, and rebases SVG image links.
src/​DemaConsulting.CanvasNet.Viewer/​Imaging/​SvgFlattener.cs Defines the flatten API and orchestrates detection, limits, diagnostics, rewriting, and publishing.
src/​DemaConsulting.CanvasNet.Viewer/​Imaging/​SourceLoader.SvgImages.cs Shares SVG link-kind classification with the flattener.
src/​DemaConsulting.CanvasNet.Viewer/​Imaging/​NamespaceDoc.cs Documents the new imaging operation.
src/​DemaConsulting.CanvasNet.Tool/​Commands/​Help/​svg.json Documents SVG flatten behavior, limits, diagnostics, and examples.
src/​DemaConsulting.CanvasNet.Tool/​Commands/​Help/​limits.json Documents SVG flatten resource limits.
src/​DemaConsulting.CanvasNet.Tool/​Commands/​Help/​json.json Documents the flatten JSON result fields.
src/​DemaConsulting.CanvasNet.Tool/​Commands/​FlattenCommand.cs Implements the thin CLI front end for SVG flattening.
src/​DemaConsulting.CanvasNet.Tool/​Commands/​DiscoveryCommands.cs Adds flatten guidance to command discovery help.
src/​DemaConsulting.CanvasNet.Tool/​Commands/​CommandRegistry.cs Registers the flatten command.
requirements.yaml Includes the new Viewer and Tool flatten requirements.
README.md Adds flattening to the feature and command summaries.
docs/​verification/​introduction.md Updates the verification software-unit inventory.
docs/​verification/​definition.yaml Includes the new verification documents.
docs/​verification/​canvas-net-viewer/​imaging/​svg-flattener.md Defines SvgFlattener verification scenarios.
docs/​verification/​canvas-net-viewer/​imaging.md Adds flattening to Imaging subsystem verification.
docs/​verification/​canvas-net-viewer.md Adds Viewer flatten integration verification.
docs/​verification/​canvas-net-tool/​commands/​help-topics.md Documents flatten help parity verification.
docs/​verification/​canvas-net-tool/​commands/​flatten-command.md Defines FlattenCommand verification scenarios.
docs/​verification/​canvas-net-tool/​commands.md Adds flatten command subsystem verification.
docs/​verification/​canvas-net-tool.md Adds real-process flatten verification scenarios.
docs/​user_guide/​canvas-net-viewer.md Documents the Viewer flatten API.
docs/​user_guide/​canvas-net-tool.md Documents the flatten command, JSON output, and filter behavior.
docs/​user_guide/​canvas-net-svg.md Cross-references flattening for other SVG readers.
docs/​user_guide/​canvas-net-mermaid.md Updates the composition dashboard example to use flattening.
docs/​sysml2/​model/​canvas-net-viewer/​imaging/​svg-flattener.sysml Models the new Viewer unit and artifact links.
docs/​sysml2/​model/​canvas-net-viewer/​imaging.sysml Adds SvgFlattener to the Imaging subsystem model.
docs/​sysml2/​model/​canvas-net-viewer.sysml Updates the Viewer system model.
docs/​sysml2/​model/​canvas-net-tool/​commands/​flatten-command.sysml Models the new CLI command.
docs/​sysml2/​model/​canvas-net-tool/​commands.sysml Adds FlattenCommand to the Commands subsystem model.
docs/​sysml2/​model/​canvas-net-tool.sysml Updates the Tool system model.
docs/​reqstream/​canvas-net-viewer/​imaging/​svg-flattener.yaml Defines SvgFlattener unit requirements.
docs/​reqstream/​canvas-net-viewer/​imaging.yaml Adds flatten requirements and traceability for the Imaging subsystem.
docs/​reqstream/​canvas-net-viewer.yaml Adds Viewer-level flatten requirements and tests.
docs/​reqstream/​canvas-net-tool/​commands/​help-topics.yaml Adds help parity requirements.
docs/​reqstream/​canvas-net-tool/​commands/​flatten-command.yaml Defines FlattenCommand requirements.
docs/​reqstream/​canvas-net-tool/​commands.yaml Adds flatten command subsystem requirements.
docs/​reqstream/​canvas-net-tool.yaml Adds tool-level flatten requirements and tests.
docs/​filters/​test-canvasnet.ps1 Adds plain, composite, nested, cache, rebasing, and WeasyPrint filter checks.
docs/​filters/​canvasnet.lua Detects composite SVGs, hashes dependencies, invokes flattening, and caches generated copies.
docs/​design/​introduction.md Updates the design software-item inventory and repository maps.
docs/​design/​definition.yaml Includes the new design documents.
docs/​design/​canvas-net-viewer/​imaging/​svg-flattener.md Describes the SvgFlattener architecture and dependencies.
docs/​design/​canvas-net-viewer/​imaging/​source-loader.md Documents SourceLoader integration with the flattener.
docs/​design/​canvas-net-viewer/​imaging/​image-writer.md Documents staged flatten output publication.
docs/​design/​canvas-net-viewer/​imaging.md Adds flattening to the Imaging subsystem design.
docs/​design/​canvas-net-viewer.md Updates Viewer architecture and public API descriptions.
docs/​design/​canvas-net-tool/​commands/​help-topics.md Documents flatten help-topic parity design.
docs/​design/​canvas-net-tool/​commands/​flatten-command.md Describes FlattenCommand design and dependencies.
docs/​design/​canvas-net-tool/​commands/​command-registry.md Updates the default command registry design.
docs/​design/​canvas-net-tool/​commands.md Adds flattening to the command subsystem design.
docs/​design/​canvas-net-tool.md Updates Tool architecture and command inventory.
.reviewmark.yaml Adds review sets for the new Viewer and Tool units.
.cspell.yaml Adds xlink to the spelling dictionary.

Review effort: Lite

Comment thread docs/filters/canvasnet.lua Resolved
Comment thread docs/filters/canvasnet.lua Resolved
…, one render per link

- canvasnet.lua: replace the regex scan of <image> tags with a small tokenizer that skips
  comments, CDATA, processing instructions and a DOCTYPE, reads quoted attribute values
  (a ">" inside one no longer ends the tag), and takes the effective link as SvgFlattener
  does (href wins over xlink:href). A plain SVG still never starts the tool.
- canvasnet.lua: a link to a missing model/chart/diagram/document (directly or in a nested
  SVG) now classifies the drawing as composite, so the tool reports svg-image-unresolved;
  the cache key notes the file as missing, so creating it later flattens the drawing, and
  the .plain marker keeps the tool's warnings and shows them on every build.
  FILTER_VERSION 11.
- SvgFlattener.Recorder: the detection pass only records the largest placement of each
  link; DrawRecorded then draws each link once at that size, so the image count and pixel
  budget of FolderImageResolver are charged once per link. Single-use output is unchanged.
- Tests: filter checks for comment/CDATA/PI, quoted ">", and missing (also nested) diagrams;
  Viewer tests for a repeated link against the image-count and pixel budgets.
- Design, verification, requirement test links and user guide updated.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings November 11, 2026 00:11

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

Active issues remain around version consistency, namespace filtering, UTF-8 size accounting, and diagnostics for nested SVG links.

2 open issues
2 previously missed issues

In code that hasn't changed since last review

Medium severity Measure href sizes in UTF-8 bytes before checking limits

src/​DemaConsulting.CanvasNet.Viewer/​Imaging/​SvgFlattener.Links.cs:226

size starts as a byte count (document.Bytes.Length), but this update adds value.Length and link.Length, which are UTF-16 character counts. For a non-ASCII href this makes the pre-check disagree with the final UTF-8 output size and can reject a copy that is actually within MaxOutputBytes (for example, replacing a long Unicode path can reduce bytes while increasing character count). Compute both lengths with the strict UTF-8 encoding used by Encode before calling CheckSize.

Medium severity Report undrawn links in nested SVGs

src/​DemaConsulting.CanvasNet.Viewer/​Imaging/​SvgFlattener.cs:414

NotDrawn is called with FindImageLinks(info.Path, ...), so it only checks the top-level SVG. If a shown nested SVG contains a hidden/unused CanvasNet-only <image> (for example outer.svg -> inner.svg, with inner.svg defining but never showing flow.mmd), Recorder never requests it and the nested SVG is not captured, but no svg-flatten-image-not-drawn diagnostic is produced. This silently leaves the link in a composite tree despite the documented guarantee that every never-drawn CanvasNet link is reported; diagnostics need to carry the nested SVG's links and origin as well.

3 resolved since last review

Review effort: Lite

Comment thread docs/filters/canvasnet.lua Resolved
Comment thread docs/filters/canvasnet.lua Resolved
…e pre-check, nested not-drawn links

- canvasnet.lua: the pre-scan takes a prefixed href as the legacy link only when its prefix
  is bound to the XLink namespace (http://www.w3.org/1999/xlink) on the element or an
  ancestor, tracking xmlns:<prefix> declarations per element scope as the XmlReader of
  SvgFlattener.FindImageLinks does; an unrelated foo:href no longer starts the tool.
- SvgFlattener.Rewrite: the size checked while the copy is built is counted in UTF-8 bytes
  (StrictUtf8.GetByteCount of the new and the old value), the same encoding Encode uses,
  so a non-ASCII href no longer makes the pre-check disagree with the final size.
- FolderImageResolver.Requested (new RequestedImage record): every link any level asked
  for, with the files that contain it and the name of the picture when drawn.
  SvgFlattener.NotDrawnNested uses it to report svg-flatten-image-not-drawn for links of a
  shown nested SVG file that it never shows, with the nested file as location and origin.
- Tests: filter checks for a foreign-namespace href (no tool) and a custom XLink prefix
  (flattened); Viewer tests for a CJK href at the output limit and for hidden/shown
  diagrams in a nested SVG; core tests for Requested and RequestedImage equality.
- Design, requirements, verification, SysML, review-set, user guides and svg help updated.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings November 11, 2026 01:01
@Malcolmnixon

Copy link
Copy Markdown
Member Author

Previously missed findings, fixed in 6f9a957:

  • UTF-8 size accounting (SvgFlattener.Links.cs): the size check during the rewrite now counts the new and old href values with the same strict UTF-8 encoding that Encode uses, so it agrees with the final CheckSize. Regression: NonAsciiHrefAtOutputLimit_CountsUtf8Bytes (a CJK href fits a limit of exactly the copy's size and is refused one byte under it).
  • Undrawn links in nested SVGs (SvgFlattener.cs): a new NotDrawnNested step finds each nested SVG the drawing showed and reports every CanvasNet-only link it never showed as svg-flatten-image-not-drawn. The location is that file's line and column, and the origin is the chain of files. Regressions: HiddenDiagramInNestedSvg_ReportsNotDrawnWithOrigin, plus a guard that a shown nested diagram is not reported.
    • This needed a small additive core API: FolderImageResolver.Requested, a read-only list of a new RequestedImage record (the link, the files that contain it, and the picture's name when drawn). The nested SVG's links are requested from inside the resolver, where the Viewer could not see them.
    • RequestedImage is a separate record rather than a change to EmbeddedImage, so existing equality is unaffected.
    • It is covered by core tests, a requirement (FolderImageResolver-Requested), design, verification and SysML updates, and the review set.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

A moderate active issue remains because the recorder classifies percent-encoded links before decoding, so valid Mermaid references can be rendered normally but omitted from flattening.

No open issues 🎉

1 previously missed issue

In code that hasn't changed since last review

Medium severity Decode href paths before classifying image extensions

src/​DemaConsulting.CanvasNet.Viewer/​Imaging/​SvgFlattener.Recorder.cs:133

The recorder classifies links from the raw href before percent-decoding, while FolderImageResolver decodes the path before choosing its source/extension. Thus a valid link such as href="flow%2Emmd" is resolved and drawn by normal SVG rendering, but KindOfName returns no Mermaid kind here, so the recorder never schedules it and flatten leaves it unchanged. Decode the path portion after removing the query/fragment before applying the same extension classification as the resolver.

2 resolved since last review

Review effort: Lite

…ent-decode

The recorder and the not-drawn checks classified a link from its raw text, while
FolderImageResolver cuts the query and fragment and percent-decodes the path before it
chooses a source, so href="flow%2Emmd" was drawn by normal SVG rendering but never
flattened.

- FolderImageResolver.DecodeReference (internal, shared with the Viewer through a new
  InternalsVisibleTo grant): the cut-then-decode path the resolver chooses its source by;
  ToRelativePath uses the same helper.
- SourceLoader.SvgImages.KindOfName classifies DecodeReference(href), so the Recorder and
  the top-level and nested not-drawn checks agree with the resolver; a nested file is
  classified by its file name with the new KindOfFile (no cutting or decoding).
- canvasnet.lua: the SVG pre-scan cuts at "?"/"#" first and then percent-decodes (one
  candidate path, as the resolver reads it) for the hash and the composite detection.
- Tests: Viewer test for flow%2Emmd (flattened; hidden encoded link reported), core test
  for DecodeReference, and a filter check that flow%2Emmd is flattened.
- Design, requirements and verification updated.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings November 11, 2026 01:44
…of inline ignores

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Malcolmnixon

Copy link
Copy Markdown
Member Author

Previously missed finding (percent-encoded links), fixed in 832e24f. Flatten now classifies a link from the same path the resolver chooses its source by: query and fragment cut first, then percent-decoded, through the resolver's shared (internal) FolderImageResolver.DecodeReference. So href="flow%2Emmd" is a Mermaid diagram to both and is flattened. The Lua pre-scan cuts then decodes the same way. Regressions: PercentEncodedExtension_ClassifiedAsResolverReadsIt (Viewer, which fails on the old code), DecodeReference_CutsThenDecodes (core), and a filter check. A follow-up commit replaces the inline spell-check ignores for %2Emmd with one .cspell.yaml pattern for percent-escapes.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

Human assessment is needed because the change has moderate and critical hidden issues involving incorrect handling of local file URIs and potential sandbox escapes during dependency scanning.

No open issues 🎉

Review effort: Lite

Copilot AI lite review requested due to automatic review settings November 11, 2026 01:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The change warrants human review because cross-platform link resolution can mishandle Windows drive-letter and UNC paths on Unix, potentially rebasing links unexpectedly.

No open issues 🎉

Review effort: Lite

@Malcolmnixon
Malcolmnixon merged commit 9defe0f into main Nov 11, 2026
16 checks passed
@Malcolmnixon
Malcolmnixon deleted the feature/svg-flatten branch November 11, 2026 03:11
This was referenced Nov 11, 2026
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.

2 participants