Skip to content

feat: restrict bare autolinks to common TLDs#62

Closed
ocavue wants to merge 4 commits into
masterfrom
feat/autolink-tld-allowlist
Closed

feat: restrict bare autolinks to common TLDs#62
ocavue wants to merge 4 commits into
masterfrom
feat/autolink-tld-allowlist

Conversation

@ocavue

@ocavue ocavue commented Jun 16, 2026

Copy link
Copy Markdown
Member

Bare GFM autolinks (http(s)://, www., email) now only become links when their domain ends in a TLD from a curated common-TLD allowlist; otherwise they stay plain body text. Explicit <...> autolinks and [](…) links are exempt and always honored.

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
meowdown Ready Ready Preview, Comment Jun 16, 2026 9:02pm

@github-actions

github-actions Bot commented Jun 16, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 95.01% 1390 / 1463
🔵 Statements 92.73% 1545 / 1666
🔵 Functions 93.09% 337 / 362
🔵 Branches 84.78% 819 / 966
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/core/src/extensions/common-tlds.ts 100% 100% 100% 100%
packages/core/src/extensions/inline-text-to-mark-chunks.ts 94.28% 92.06% 100% 95.31% 68, 101, 181, 191
Generated in workflow #227 for commit 3b340d4 by the Vitest Coverage Report Action

@pkg-pr-new

pkg-pr-new Bot commented Jun 16, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/prosekit/meowdown/@meowdown/core@62
npm i https://pkg.pr.new/prosekit/meowdown/@meowdown/react@62

commit: 3b340d4

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