Skip to content

feat: add wikilink hover cards#291

Merged
ocavue merged 13 commits into
masterfrom
wikilink-hover-card
Jul 12, 2026
Merged

feat: add wikilink hover cards#291
ocavue merged 13 commits into
masterfrom
wikilink-hover-card

Conversation

@ocavue

@ocavue ocavue commented Jul 12, 2026

Copy link
Copy Markdown
Member

Hovering a rendered wiki link opens a passive hover card after a 300ms dwell: core gains a transaction-aware defineWikilinkHoverHandler, and @meowdown/react gains WikilinkHoverCard, built on Base UI's PreviewCard, whose render prop returns the card body from the hovered hit (or null for no card). An open card follows the pointer across links without a new dwell, sliding to the new anchor, and MarkdownView gets an interactive prop for inert local previews. Redoes #288 with a smaller API surface, and fixes adjacent wide-alias wikilink labels resolving clicks to their neighbor.

@vercel

vercel Bot commented Jul 12, 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 Jul 12, 2026 10:02am

@pkg-pr-new

pkg-pr-new Bot commented Jul 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

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

commit: cebe554

@github-actions

github-actions Bot commented Jul 12, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 93.95% 3624 / 3857
🔵 Statements 91.62% 4037 / 4406
🔵 Functions 91.84% 878 / 956
🔵 Branches 85.8% 2472 / 2881
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/core/src/index.ts 0% 0% 0% 0%
packages/core/src/extensions/link-hover.ts 100% 100% 100% 100%
packages/core/src/extensions/mark-click.ts 91.66% 87.5% 100% 100% 35
packages/core/src/extensions/mark-hover.ts 88.37% 87.09% 100% 94.44% 54, 61, 70, 98-99
packages/core/src/extensions/wikilink-click.ts 85.71% 75% 83.33% 91.66% 39, 56
packages/core/src/extensions/wikilink-hover.ts 100% 100% 100% 100%
packages/react/src/index.ts 0% 0% 0% 0%
packages/react/src/components/markdown-view.tsx 93.75% 82.14% 92.85% 98.59% 133, 137, 187, 222, 224, 280, 293, 383, 393, 440
packages/react/src/components/wikilink-hover-card.module.css 0% 0% 0% 0%
packages/react/src/components/wikilink-hover-card.module.d.css.ts 0% 0% 0% 0%
packages/react/src/components/wikilink-hover-card.tsx 94.73% 85.71% 91.66% 96.77% 76
packages/vitest/src/setup-console.ts 0% 100% 0% 0% 3-10
Generated in workflow #1185 for commit cebe554 by the Vitest Coverage Report Action

@ocavue ocavue changed the title feat: add wiki-link hover cards feat: add wikilink hover cards Jul 12, 2026
@ocavue ocavue force-pushed the wikilink-hover-card branch from 8eb0f9c to 37d3ddd Compare July 12, 2026 07:53
@ocavue ocavue force-pushed the wikilink-hover-card branch from 001c249 to e49f37e Compare July 12, 2026 09:45
@ocavue ocavue marked this pull request as ready for review July 12, 2026 09:45
@ocavue ocavue force-pushed the wikilink-hover-card branch from 4fe8dcb to cebe554 Compare July 12, 2026 10:02
@ocavue ocavue merged commit 9a0f2a8 into master Jul 12, 2026
9 of 10 checks passed
@ocavue ocavue deleted the wikilink-hover-card branch July 12, 2026 10:06
@ocavuebot ocavuebot mentioned this pull request Jul 12, 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