Skip to content

chore(deps): upgrade comark to 0.9.1 - #613

Merged
larbish merged 1 commit into
mainfrom
chore/upgrade-comark-0.9
Nov 10, 2026
Merged

larbish merged 1 commit into
mainfrom
chore/upgrade-comark-0.9

Conversation

@larbish

@larbish larbish commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Why

On comark 0.7, saving a Docus page that repeats a heading inside a component, such as ::code-preview, wrote an explicit id like {#titles-1} into the file. comark 0.9.1 includes the fix (comarkdown/comark#578).

What changed

  • Bump comark to ^0.9.1 in package.json and the pnpm-workspace.yaml override.
  • Pass inlineCode: false to shiki in generate.ts and tiptapToComark.ts. comark 0.9 highlights inline code, which throws ShikiError: Theme 'github-dark' not found with Studio's string theme names.
  • Replace the deprecated linkify: false with registerDefaultPlugins: false and the other default plugins, in generate.ts and ai/completion.ts.
  • Update the two hard-break tests: comark 0.9 keeps :br when a trailing-space break wouldn't round-trip, so the file no longer changes on save.

Evidence

New test: ## Titles at the top level and inside ::code-preview, read through @nuxtjs/mdc and saved from the editor.

  • comark 0.9.0: fails, output contains ## Titles {#titles-1}
  • comark 0.9.1: passes, output matches the input

pnpm lint (0 errors), pnpm prepack, pnpm typecheck and pnpm test (448/448) pass.

ELI5

Studio uses a library to read and write Markdown. The old version added odd markers to some headings when you saved a page. The new version fixes that, and these changes adapt Studio to how the new version works.

🤖 Generated with Amp, reviewed by @larbish before opening.

@vercel

vercel Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
content-studio Ready Ready Preview Nov 10, 2026 4:02pm UTC
nuxt.studio Ready Ready Preview Nov 10, 2026 4:02pm UTC

@pkg-pr-new

pkg-pr-new Bot commented Nov 10, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/nuxt-studio@613

commit: 3f42841

@larbish
larbish merged commit 7f18830 into main Nov 10, 2026
6 checks passed
@larbish
larbish deleted the chore/upgrade-comark-0.9 branch November 10, 2026 16:08

This branch was successfully deployed

2 active deployments
Preview – nuxt.studio — 3f428417 Deployed Nov 10, 2026 by vercel[bot]
Preview – content-studio — 3f428417 Deployed Nov 10, 2026 by vercel[bot]
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