Repository navigation
fix(ui)!: leave diagram fences as code unless the app turns drawing on - #447
Conversation
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Latest result Pull request merged. Final answersSession Pull request merged. Session Waiting for review checks before the next pass. Session Waiting for review checks before the next pass. |
There was a problem hiding this comment.
✅ No new issues found. No P0 or P1 findings remain.
Reviewed changes Reviewed the diagram default change, explicit configuration paths, and documentation/playground integration.
- Offline by default. The shared preset leaves Kroki fences as code without requests while retaining the authored-SVG safety check across renderer entries.
- Explicit drawing preserved.
trueand options objects enable drawing, a customserveris respected,draw: falsesuppresses requests, anddiagrams: falseremoves the plugin and components. - Docs and regression coverage. The site explicitly opts in to preserve its examples, and the docs and skill references explain the new default and privacy implications.
Validation: 113 focused tests passed, with one skipped, plus an 18-case configuration matrix across HTML, Vue, and React. The initial workspace build exceeded the command’s 120-second limit; the interrupted packages and UI subsequently built successfully with direct tsdown runs.
gpt-6.1-sol(xhigh) | 𝕏
comark-annotate
comark-badge
comark-bundle
comark-cards
comark-carousel
comark-cast
comark-charts
comark-chat
comark-chips
comark-cjk
comark-code
comark-code-notes
comark-colors
comark-comments
comark-critic
comark-deflist
comark-details
comark-diagrams
comark-diff
comark-embed
comark-fields
comark-figure
comark-file-tree
comark-footnotes
comark-git-graph
comark-github
comark-icon
comark-include
comark-keys
comark-links
comark-linter
comark-magic-move
comark-mark
markdown-it-to-comark
marked-to-comark
comark-mathml
comark-media
comark-metrics
migrate-to-comark
comark-outline
comark-properties
comark-qr
comark-quiz
comark-reading-time
remark-to-comark
comark-sources
comark-steps
comark-table
comark-tabs
comark-tests
comark-time
comark-ui
comark-xref
comark-zoom
commit: |

With the comark-ui preset as it is, every
plantuml,graphviz/dot,d2,dbmlandgoat/svgbobfence is POSTed tohttps://kroki.iowhile the document parses. An app that renders private docs or user content sends that source to a public server without choosing to.This PR makes the preset pass
{ draw: false }to comark-diagrams whendiagramsis left out, so the fences stay code and nothing leaves the process. The check that refuses an authored::diagramSVG still runs.diagrams: truedraws throughhttps://kroki.ioas before,diagrams: { server }through your own Kroki, anddiagrams: falsedrops the plugin. comark-diagrams on its own keepshttps://kroki.ioas its default, and Mermaid isn't affected.Apps that relied on the old default need
diagrams: trueordiagrams: { server }. The docs site passesdiagrams: trueindocs/plugins.ts, so its pages and the playground still draw. Getting started, the diagrams page and README, and the skill references describe the new default.The new test in
packages/ui/test/ui.test.tsrenders all seven fence languages with the preset defaults and expects code and no requests, then checks the authored-SVG issue,true,{ server }, and{ server, draw: false }. It fails onmainwith every fence drawn and passes here.pnpm check, Vite Doctor and the rest of the tests pass, except the remark-to-comark CLI test that times out locally onmaintoo.Fixes #446