Repository navigation
feat: mark blocks that draw their own frame with data-comark-frame - #384
Conversation
A host that frames its examples had to list about 30 block classes to know which blocks already draw a border or a surface. Every such block root now carries `data-comark-frame` in every renderer, and the docs' example frames select it instead of the lists.
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. |
There was a problem hiding this comment.
Important
Annotated screenshots and comparisons still do not satisfy the new direct-child frame-marker contract.
Reviewed changes Reviewed the introduction of data-comark-frame across package renderers and the migration of docs selectors to the shared marker.
- Renderer marker contract Adds the shared marker to framed roots across HTML, React, Vue, and Svelte implementations.
- Docs integration Replaces package-specific class allowlists with
[data-comark-frame]and documents direct-child host selection. - Verification Updates package snapshots and adds preset-level HTML and Vue coverage for representative framed blocks.
gpt-5.6-sol | 𝕏
comark-annotate
comark-badge
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-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: |
Latest result Pull request merged. Final answersSession Pull request merged. Pushed d66dbf7, resolving the merge conflict and Pullfrog P1 missing annotate root markers. Three regression cases failed before the fix; annotate tests now pass 72/72. Package build, focused tsrs, vp lint, vp fmt --check, and Vue compilation pass. Browser verification was unavailable because Chromium is absent. Resolved the fixed review thread; awaiting CI. |
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes Reviewed the follow-up that closes the annotate frame-marker gap identified in the prior Pullfrog review.
- Annotated block roots Marked standalone screenshots, slider comparisons, and carousel comparisons with
data-comark-frameon their outer.caelements. - Contract coverage Added focused renderer tests covering all three annotated block forms and updated existing markup expectations.
- Docs integration Simplified the example preview selectors so server-rendered annotate blocks follow the same marker contract as other framed blocks without package-specific exceptions.
gpt-5.6-sol | 𝕏

A host that frames its examples has to know which blocks already draw a border or a surface, so it doesn't frame them twice. Today that means a list of 24 block classes. comark-ui's docs repeat it four times in
docs/play-preview.css, twice inExample.vue, and once inPackages.vue, and@vite-hub/docskeeps its own copy. Every new framed block has to be added to each list.This PR puts
data-comark-frameon the root of every block that draws its own frame, in the HTML, Vue, React, and Svelte renderers: code blocks, tabs and code groups, magic move, diffs, charts, diagrams, Mermaid, embeds and link cards, GitHub callouts, file trees, carousels, cards and card groups, casts, details and accordions, test reports, properties, stat tiles, quizzes, videos, and code notes. The docs' CSS selects[data-comark-frame]instead of the lists, and the theming guide documents it.It's an attribute and not a class because each package's classes carry that package's prefix, and this marker is shared by all of them, like
data-not-typesetanddata-wide. React writes it asdata-comark-frame=""and the other renderers asdata-comark-frame; both match[data-comark-frame]. A code block inside a code group carries it too, so a host that wants the outer frame selects a direct child, as the guide's example does.ui.test.tschecks the marker on a code block, a code group, a callout, and a diff in HTML and Vue, and its absence on a paragraph. It fails on main. The other test changes add the attribute to the expected markup. A fixture rendered withcomark-ui/htmlmatches main pixel for pixel in light,.dark, and system dark.pnpm readypasses.Packages.vue's list didn't have videos or code notes, so on the landing canvas those now lose their margin too, like the other framed blocks.