Skip to content

fix(markdown): respect resourceLink for bare autolinks#4972

Open
ajmnz wants to merge 1 commit intoudecode:mainfrom
ajmnz:codex-markdown-resource-link-serialization
Open

fix(markdown): respect resourceLink for bare autolinks#4972
ajmnz wants to merge 1 commit intoudecode:mainfrom
ajmnz:codex-markdown-resource-link-serialization

Conversation

@ajmnz
Copy link
Copy Markdown

@ajmnz ajmnz commented May 11, 2026

  • Auto release

Fix markdown serialization so bare autolink literals respect remarkStringifyOptions.resourceLink. When callers force resource links, Plate now returns the normal mdast link and lets remark-stringify emit [url](url) instead of short-circuiting to raw autolink text.

Adds a regression test for the resourceLink: true case, updates the markdown solution note, and includes a patch changeset for @platejs/markdown.

Testing: fully tested

  • CI=true pnpm install
  • pnpm exec bun test packages/markdown/src/lib/gfmSurface.spec.ts
  • pnpm turbo build --filter=./packages/markdown
  • pnpm turbo typecheck --filter=./packages/markdown
  • pnpm lint:fix

AI-assisted: yes. I understand what the change does.

@ajmnz ajmnz requested a review from a team May 11, 2026 10:57
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 11, 2026

🦋 Changeset detected

Latest commit: ce3e514

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@platejs/markdown Patch
@platejs/ai Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. patch Bugfix & documentation PR plugin:markdown Markdown deserializer labels May 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Bugfix & documentation PR plugin:markdown Markdown deserializer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant