Skip to content

Fix dotted citation labels#861

Merged
miurla merged 1 commit into
mainfrom
fix/dotted-citation-labels
May 23, 2026
Merged

Fix dotted citation labels#861
miurla merged 1 commit into
mainfrom
fix/dotted-citation-labels

Conversation

@miurla
Copy link
Copy Markdown
Owner

@miurla miurla commented May 23, 2026

Summary

  • Allow dotted source labels such as global.example to render as citation links.
  • Reuse one citation label detector in both link rendering paths.
  • Add regression coverage for dotted citation labels.

Root Cause

Citation markdown was converted to domain-style labels, but labels containing dots did not match the UI citation detector. That caused citation data lookup and pill styling to be skipped for those links.

Validation

  • bun run test lib/utils/__tests__/citation.test.ts
  • bun lint components/custom-link.tsx components/citation-link.tsx lib/utils/citation.ts lib/utils/__tests__/citation.test.ts
  • bun typecheck

@vercel
Copy link
Copy Markdown

vercel Bot commented May 23, 2026

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

Project Deployment Actions Updated (UTC)
morphic Ready Ready Preview, Comment May 23, 2026 7:23am

@miurla miurla marked this pull request as ready for review May 23, 2026 07:25
@miurla miurla merged commit 050dba4 into main May 23, 2026
7 of 8 checks passed
@miurla miurla deleted the fix/dotted-citation-labels branch May 23, 2026 07:31
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