Repository navigation
feat(github): read ::note, ::tip, ::warning, ::caution, ::important, and ::callout{type} as callouts - #419
Conversation
…and ::callout{type} as callouts
The blocks become the same github-callout node as a > [!NOTE] quote, so every renderer draws them with its existing component. Unless callouts({ blocks: false }), the preset lists them in blocks and comark-linter knows them. A ::callout with a type GitHub doesn't have renders as a note and is reported.
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 Pushed bdc45aa to preserve nested container ownership and resolved the finding. All 86 focused tests pass; lint passes with existing warnings. The Doctor failure underlying check / check and Preview Package reproduces on exact base f69708d with the same five git-graph warnings. Awaiting checks and automated review. Session Pushed bdc45aa to preserve nested container ownership and resolved the finding. All 86 focused tests pass; lint passes with existing warnings. The Doctor failure underlying check / check and Preview Package reproduces on exact base f69708d with the same five git-graph warnings. Awaiting checks and automated review. Session Pushed bdc45aa to preserve nested container ownership and resolved the finding. All 86 focused tests pass; lint passes with existing warnings. The Doctor failure underlying check / check and Preview Package reproduces on exact base f69708d with the same five git-graph warnings. Awaiting checks and automated review. Session Pushed bdc45aa to preserve nested container ownership and resolved the finding. All 86 focused tests pass; lint passes with existing warnings. The Doctor failure underlying check / check and Preview Package reproduces on exact base f69708d with the same five git-graph warnings. Awaiting checks and automated review. Session Pushed 656f3b6 fixing the component-prop marker leak and resolved its review thread. All 50 focused tests pass; changed-file lint and GitHub Doctor are clean. The failing CI Doctor check reproduces identically on exact base f69708d with five git-graph warnings. Awaiting hosted checks and review. Session Pushed 656f3b6 fixing the component-prop marker leak and resolved its review thread. All 50 focused tests pass; changed-file lint and GitHub Doctor are clean. The failing CI Doctor check reproduces identically on exact base f69708d with five git-graph warnings. Awaiting hosted checks and review. |
There was a problem hiding this comment.
Important
Two parsing defects need attention before merging: mixed-content bodies produce invalid paragraph nesting, and raw HTML is incorrectly reclassified as a callout.
Reviewed changes — Reviewed the block-callout parser, renderer exports, preset/linter integration, and documentation; the workspace build and 805 focused tests passed.
- Block normalization: Adds the five named callout blocks and
::callout{type}, enabled by default with ablocks: falseopt-out. - Titles and diagnostics: Supports title props and slots, localized defaults, and note fallback with a diagnostic for unknown types.
- Package integration: Exports
CALLOUT_BLOCKSacross renderers and registers the source names with the preset and linter. - Documentation and coverage: Updates package and skill references, Doctor guidance, and parser/rendering/integration tests.
gpt-6.1-sol(xhigh) | 𝕏
There was a problem hiding this comment.
Important
The paragraph-normalization fix introduces a regression: inline components split callout prose into separate paragraphs.
Reviewed changes — Reviewed 816375d since the previous Pullfrog review; the workspace build and all 90 focused tests passed.
- Preserved block boundaries: Replaced whole-body paragraph wrapping with consecutive inline runs, retaining existing paragraphs and lists.
- Preserved HTML filtering: Excluded raw HTML from block-callout conversion and added regressions for all six names in both plugin orders.
- Added mixed-body coverage: Tested default-slot content and inline HTML followed by a list through parsing and rendering.
gpt-6.1-sol(xhigh) | 𝕏
There was a problem hiding this comment.
Important
The inline-component fix is verified, but its new block markers introduce false unknown-prop diagnostics for valid nested components.
Reviewed changes — Reviewed 7586d2e since the previous Pullfrog review; the workspace build, typecheck, and all 115 focused tests passed.
- Preserved inline prose: Replaced the native-inline allowlist so badges, colors, times, and custom inline components stay in their surrounding paragraph.
- Tracked source block boundaries: Added token-level markers to distinguish nested custom blocks from inline uses of the same component.
- Expanded regression coverage: Added mixed inline/block parsing coverage and 24 preset parse/render comparisons across all six callout forms.
gpt-6.1-sol(xhigh) | 𝕏
There was a problem hiding this comment.
Important
The replacement boundary wrappers break nested containers before earlier plugins run, causing lost content and incorrect diagnostics.
Reviewed changes — Reviewed 656f3b6 since the previous Pullfrog review at 7586d2e; the workspace build, typecheck, and all 122 focused tests passed.
- Replaced prop-based markers: Added temporary structural wrappers to retain source block boundaries without adding component props, then removed them during callout normalization.
- Expanded nested-block coverage: Added preset parse/render/lint regressions across all six callout forms and card checks in both plugin orders.
gpt-6.1-sol(xhigh) | 𝕏
There was a problem hiding this comment.
✅ No new issues found, and no P0 or P1 findings remain.
Reviewed changes — Reviewed bdc45aa since the prior Pullfrog review at 656f3b6; the workspace build, typecheck, and all 307 focused tests passed.
- Preserved container ownership: Limited boundary wrappers to immediate callout-body blocks, retaining nested containers' direct-child relationships before other plugins run.
- Expanded regression coverage: Added compare/annotation and carousel checks across all six callout forms, plus tabs/accordion checks in both plugin orders; an additional 48 nested/slotted parse/render cases also passed.
gpt-6.1-sol(xhigh) | 𝕏
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-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: |

::note,::tip,::warning,::caution,::important, and::callout{type}render as unknown tags with comark-ui: the text runs into the paragraph around it with no box. Docus, Nuxt UI, and most agent-written docs use these blocks, and comark-ui only drew the> [!NOTE]quote. Drop draws them with its own handler and CSS, which every other host would have to copy.callouts()in comark-github now turns those blocks into the samegithub-calloutnode as the quote, so the HTML, Vue, React, and Svelte components draw them with the icon and title they already have. The body reads the same as the quote's,titleor a#titleslot replaces the title, and::callouttakes itstype(a note without one). A::callouttype GitHub doesn't have, such asinfo, renders as a note and is reported undercomark/github/unknown-callout-type.It's on by default, since no docs page uses these names for anything else.
callouts({ blocks: false })leaves them to a host's own components. The blocks are exported asCALLOUT_BLOCKS, the preset lists them inblocks, and comark-linter knows them, so::noteisn't reported as an unknown component.Drop also maps
::infoand::alert. I left those out: they aren't GitHub types, so Drop can keep a two-line alias for its old docs.Before and after, light and dark: before/after on Drop
Validation:
vp test runon github, ui, and lint: the three new block tests fail onmainand pass here. The full suite passed apart from aremark-to-comarkCLI test that timed out under load.pnpm typecheck,vp lintandvp fmton the changed files,pnpm run doctorfor github, ui, and lint, andpnpm run lint:docs.pnpm docs:build; the screenshots render a sample doc throughcomark-ui/htmlinstead of the docs site.