Skip to content

feat(embed): set a tool player's height, and play a host's own links - #403

Merged
vite-hub[bot] merged 3 commits into
mainfrom
feat/embed-height-providers
Nov 11, 2026
Merged

vite-hub[bot] merged 3 commits into
mainfrom
feat/embed-height-providers

Conversation

@onmax

@onmax onmax commented Nov 11, 2026 •

Copy link
Copy Markdown
Owner

comark-lint fails on every doc that shows a drop with Drop's ::drop block, because the CLI knows only the blocks of the comark-ui packages installed next to it. An agent writing a report for Drop gets comark/unknown-component and has to work out alone that a comark-lint.config.mjs fixes it.

The block shouldn't be Drop's own in the first place. A drop is a link that plays in a frame, which is what ::embed is for. This PR gives ::embed the two things Drop needs to draw drops with it:

  • height sets how tall a CodePen, StackBlitz, Figma, or host player is, in pixels, through --ce-app-height on its figure. A video, Spotify, or X player sizes itself, so height there reports comark/embed/height-unsupported. A link card ignores height without an issue, so a doc written for a host with more players lints clean elsewhere.
  • The player option (comarkUi({ embed: { player } })) gets each link before the built-in providers and returns a player for the links the host knows. Drop passes one for its /d/<link> pages, so ::embed{url="https://drop.vitehub.dev/d/…" height=420} is a drop inside Drop and a link card in comark-lint, a local render, or any other host. A player that throws reports comark/embed/player-failed, and the block falls back to the built-in providers.

The second commit fixes the linter's own hint. When a component isn't a typo of a known one, the CLI now ends with the config to write:

If your renderer draws "pigeon-coop" itself, name it in comark-lint.config.mjs:
  export default { components: ["pigeon-coop"] }

A block without height renders the same markup as before. The new tests in packages/embed/test/ and the CLI test fail on main and pass here. vp check, the typecheck, lint:docs, and the embed, lint, and doctor tests pass. remark-to-comark's "refuses to migrate with no git repository" test timed out on my machine; this doesn't touch it.

The Drop side is vite-hub/drop#173. Replaces #402.

`height` sets how tall a CodePen, StackBlitz, Figma, or host player is. The `player` option lets a host play its own links before the built-in providers, such as Drop's drops, which stay link cards wherever the plugin runs without it. A card ignores `height` without an issue, so a doc written for such a host lints clean elsewhere.
…self

When a component isn't a typo of a known one, the CLI now ends with the exact `comark-lint.config.mjs` to write, or names the config it loaded, instead of a fix that didn't say where the components go.
@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-11T07:04:40.323680Z
We couldn’t complete this review. Comment @codex review to try again.
dc8e796 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.

@pkg-pr-new

pkg-pr-new Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

Open in StackBlitz

comark-annotate

pnpm add https://pkg.pr.new/comark-annotate@403

comark-badge

pnpm add https://pkg.pr.new/comark-badge@403

comark-cards

pnpm add https://pkg.pr.new/comark-cards@403

comark-carousel

pnpm add https://pkg.pr.new/comark-carousel@403

comark-cast

pnpm add https://pkg.pr.new/comark-cast@403

comark-charts

pnpm add https://pkg.pr.new/comark-charts@403

comark-chat

pnpm add https://pkg.pr.new/comark-chat@403

comark-chips

pnpm add https://pkg.pr.new/comark-chips@403

comark-cjk

pnpm add https://pkg.pr.new/comark-cjk@403

comark-code

pnpm add https://pkg.pr.new/comark-code@403

comark-code-notes

pnpm add https://pkg.pr.new/comark-code-notes@403

comark-colors

pnpm add https://pkg.pr.new/comark-colors@403

comark-comments

pnpm add https://pkg.pr.new/comark-comments@403

comark-critic

pnpm add https://pkg.pr.new/comark-critic@403

comark-deflist

pnpm add https://pkg.pr.new/comark-deflist@403

comark-details

pnpm add https://pkg.pr.new/comark-details@403

comark-diagrams

pnpm add https://pkg.pr.new/comark-diagrams@403

comark-diff

pnpm add https://pkg.pr.new/comark-diff@403

comark-embed

pnpm add https://pkg.pr.new/comark-embed@403

comark-fields

pnpm add https://pkg.pr.new/comark-fields@403

comark-figure

pnpm add https://pkg.pr.new/comark-figure@403

comark-file-tree

pnpm add https://pkg.pr.new/comark-file-tree@403

comark-footnotes

pnpm add https://pkg.pr.new/comark-footnotes@403

comark-github

pnpm add https://pkg.pr.new/comark-github@403

comark-icon

pnpm add https://pkg.pr.new/comark-icon@403

comark-include

pnpm add https://pkg.pr.new/comark-include@403

comark-keys

pnpm add https://pkg.pr.new/comark-keys@403

comark-links

pnpm add https://pkg.pr.new/comark-links@403

comark-linter

pnpm add https://pkg.pr.new/comark-linter@403

comark-magic-move

pnpm add https://pkg.pr.new/comark-magic-move@403

comark-mark

pnpm add https://pkg.pr.new/comark-mark@403

markdown-it-to-comark

pnpm add https://pkg.pr.new/markdown-it-to-comark@403

marked-to-comark

pnpm add https://pkg.pr.new/marked-to-comark@403

comark-mathml

pnpm add https://pkg.pr.new/comark-mathml@403

comark-media

pnpm add https://pkg.pr.new/comark-media@403

comark-metrics

pnpm add https://pkg.pr.new/comark-metrics@403

migrate-to-comark

pnpm add https://pkg.pr.new/migrate-to-comark@403

comark-outline

pnpm add https://pkg.pr.new/comark-outline@403

comark-properties

pnpm add https://pkg.pr.new/comark-properties@403

comark-qr

pnpm add https://pkg.pr.new/comark-qr@403

comark-quiz

pnpm add https://pkg.pr.new/comark-quiz@403

comark-reading-time

pnpm add https://pkg.pr.new/comark-reading-time@403

remark-to-comark

pnpm add https://pkg.pr.new/remark-to-comark@403

comark-sources

pnpm add https://pkg.pr.new/comark-sources@403

comark-steps

pnpm add https://pkg.pr.new/comark-steps@403

comark-table

pnpm add https://pkg.pr.new/comark-table@403

comark-tabs

pnpm add https://pkg.pr.new/comark-tabs@403

comark-tests

pnpm add https://pkg.pr.new/comark-tests@403

comark-time

pnpm add https://pkg.pr.new/comark-time@403

comark-ui

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

comark-xref

pnpm add https://pkg.pr.new/comark-xref@403

comark-zoom

pnpm add https://pkg.pr.new/comark-zoom@403

commit: 0637528

@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

A failure in the new host-player callback currently aborts the whole document render instead of falling back for that embed.

Reviewed changes — Reviewed custom player resolution, per-block heights across all four renderers, preset integration, validation, documentation, and CLI hints; the workspace build, TypeScript check, and 406 focused tests passed.

  • Host players: Adds the player callback before built-in provider resolution and forwards its options through comark-ui presets.
  • Player heights: Normalizes pixel heights for app players and writes the sizing variable in HTML, React, Vue, and Svelte, while retaining card fallback behavior.
  • Validation and documentation: Adds height diagnostics, Doctor examples, public type exports, renderer tests, and usage references.
  • Linter guidance: Prints concrete configuration guidance for unknown components that have no spelling suggestion, without changing JSON output.

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

Comment thread packages/embed/src/index.ts Resolved
…built-in providers

A `player` that threw, such as one calling `decodeURIComponent` on `https://clips.example.com/%`, rejected the whole render. It now adds `comark/embed/player-failed` and the block falls back to the built-in providers or a card.
@vite-hub

vite-hub Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor
Session Status Started Duration
Pending Completed Not started —
View session Waiting 2026-11-11T07:30:57.765Z 5m 42s

Latest result

Pull request merged.

Final answers

Session

Pull request merged.

Session

Waiting for GitHub merge request 71326355-8dc4-48f0-b0c5-e5fd772a9fb6.

View session

Ready. Pullfrog’s historical P1 host-player exception failure is fixed in 0637528; current reviews report no findings, and all supplied checks pass. From packages/embed, `vp test test/embed.test.ts test/frameworks.test.ts` passed all 20 tests after building zoom. Focused `vp lint` exited 0 with unbuilt-workspace export warnings; `git diff --check` passed. No source changes or repair commit needed.

Session

Waiting for review checks before the next pass.

onmax added a commit to vite-hub/drop that referenced this pull request Nov 11, 2026

@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; no P0 or P1 findings remain.

Reviewed changes — Reviewed 0637528 since the previous review at dc8e796, focusing on callback-failure containment and fallback behavior.

  • Caught host-player failures: Added an exception boundary that reports comark/embed/player-failed and continues through built-in providers or a link card without aborting the document.
  • Covered the failure path: Added a public parse/render regression for malformed clip URLs and registered COMARK0812 with its Doctor page and documentation.

Validation passed: 381 focused tests, the TypeScript check, and public comark-ui/html probes covering card fallback, built-in seeking, continued rendering, and issue-rule mapping. The full workspace build returned [timed out after 120000ms]; the remaining UI and linter builds passed when run directly, including export checks.

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

@vite-hub
vite-hub Bot merged commit 1a7604f into main Nov 11, 2026
6 checks passed
@vite-hub
vite-hub Bot deleted the feat/embed-height-providers branch November 11, 2026 07:39
@github-actions github-actions Bot mentioned this pull request Nov 11, 2026
vite-hub Bot added a commit to vite-hub/drop that referenced this pull request Nov 11, 2026
…knows (#173)

* feat: show a drop in a doc with `::embed`, which comark-lint already knows

`::embed{url="https://drop.vitehub.dev/d/<link>" height=420}` draws the same box `::drop` did, through comark-embed's `player` option. comark-lint and any other host read the same link as a card, so an agent's doc lints clean with no config. `::drop` still renders and publishes, since published docs never change.

* chore: comark-ui from onmax/comark-ui#403's preview build, for `::embed`'s `player` and `height`

* docs(skills): drop the comark-lint config line, which `::embed` makes unneeded

* fix: refresh cached embeds and document HTTP fallback

* chore: replace comark preview with 0.11.0 release

---------

Co-authored-by: vite-hub[bot] <320448255+vite-hub[bot]@users.noreply.github.com>
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