Skip to content

feat(github): read ::note, ::tip, ::warning, ::caution, ::important, and ::callout{type} as callouts - #419

Merged
vite-hub[bot] merged 5 commits into
mainfrom
feat/block-callouts
Nov 13, 2026
Merged

vite-hub[bot] merged 5 commits into
mainfrom
feat/block-callouts

Conversation

@onmax

@onmax onmax commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

::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 same github-callout node 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, title or a #title slot replaces the title, and ::callout takes its type (a note without one). A ::callout type GitHub doesn't have, such as info, renders as a note and is reported under comark/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 as CALLOUT_BLOCKS, the preset lists them in blocks, and comark-linter knows them, so ::note isn't reported as an unknown component.

Drop also maps ::info and ::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 run on github, ui, and lint: the three new block tests fail on main and pass here. The full suite passed apart from a remark-to-comark CLI test that timed out under load.
  • pnpm typecheck, vp lint and vp fmt on the changed files, pnpm run doctor for github, ui, and lint, and pnpm run lint:docs.
  • I didn't run the Playwright e2e suite or pnpm docs:build; the screenshots render a sample doc through comark-ui/html instead of the docs site.

…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.
@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-13T17:06:28.859604Z
We couldn’t complete this review. Comment @codex review to try again.
71daa43 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@vite-hub

vite-hub Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Starting Not started —
View session Cancelled 2026-11-13T20:03:28.338Z 1m 13s
View session Cancelled 2026-11-13T20:01:57.133Z 4s

Latest result

Pull request merged.

Final answers

Session

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.

@pullfrog pullfrog Bot 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.

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 a blocks: false opt-out.
  • Titles and diagnostics: Supports title props and slots, localized defaults, and note fallback with a diagnostic for unknown types.
  • Package integration: Exports CALLOUT_BLOCKS across 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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.1-sol(xhigh) | 𝕏

Comment thread packages/github/src/callouts.ts Resolved
Comment thread packages/github/src/callouts.ts Resolved

@pullfrog pullfrog Bot 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.

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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.1-sol(xhigh) | 𝕏

Comment thread packages/github/src/callouts.ts Resolved

@pullfrog pullfrog Bot 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.

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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.1-sol(xhigh) | 𝕏

Comment thread packages/github/src/callouts.ts Resolved

@pullfrog pullfrog Bot 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.

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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using gpt-6.1-sol(xhigh) | 𝕏

Comment thread packages/github/src/callouts.ts Resolved

@pullfrog pullfrog Bot 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.

✅ 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.

Pullfrog  | View workflow run | Using gpt-6.1-sol(xhigh) | 𝕏

@pkg-pr-new

pkg-pr-new Bot commented Nov 13, 2026

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-annotate@419

comark-badge

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-badge@419

comark-cards

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-cards@419

comark-carousel

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-carousel@419

comark-cast

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-cast@419

comark-charts

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-charts@419

comark-chat

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-chat@419

comark-chips

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-chips@419

comark-cjk

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-cjk@419

comark-code

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-code@419

comark-code-notes

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-code-notes@419

comark-colors

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-colors@419

comark-comments

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-comments@419

comark-critic

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-critic@419

comark-deflist

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-deflist@419

comark-details

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-details@419

comark-diagrams

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-diagrams@419

comark-diff

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-diff@419

comark-embed

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-embed@419

comark-fields

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-fields@419

comark-figure

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-figure@419

comark-file-tree

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-file-tree@419

comark-footnotes

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-footnotes@419

comark-git-graph

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-git-graph@419

comark-github

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-github@419

comark-icon

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-icon@419

comark-include

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-include@419

comark-keys

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-keys@419

comark-links

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-links@419

comark-linter

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-linter@419

comark-magic-move

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-magic-move@419

comark-mark

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-mark@419

markdown-it-to-comark

pnpm add https://pkg.pr.new/onmax/comark-ui/markdown-it-to-comark@419

marked-to-comark

pnpm add https://pkg.pr.new/onmax/comark-ui/marked-to-comark@419

comark-mathml

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-mathml@419

comark-media

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-media@419

comark-metrics

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-metrics@419

migrate-to-comark

pnpm add https://pkg.pr.new/onmax/comark-ui/migrate-to-comark@419

comark-outline

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-outline@419

comark-properties

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-properties@419

comark-qr

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-qr@419

comark-quiz

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-quiz@419

comark-reading-time

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-reading-time@419

remark-to-comark

pnpm add https://pkg.pr.new/onmax/comark-ui/remark-to-comark@419

comark-sources

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-sources@419

comark-steps

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-steps@419

comark-table

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-table@419

comark-tabs

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-tabs@419

comark-tests

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-tests@419

comark-time

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-time@419

comark-ui

pnpm add https://pkg.pr.new/onmax/comark-ui@419

comark-xref

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-xref@419

comark-zoom

pnpm add https://pkg.pr.new/onmax/comark-ui/comark-zoom@419

commit: bdc45aa

@vite-hub
vite-hub Bot merged commit 2a030cb into main Nov 13, 2026
7 checks passed
@vite-hub
vite-hub Bot deleted the feat/block-callouts branch November 13, 2026 20:28
@github-actions github-actions Bot mentioned this pull request Nov 13, 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.

1 participant