Skip to content

markdown: fix hyperlink rendering and detection - #1442

Open
simonklee wants to merge 3 commits into
mainfrom
ot-fix-markdown-links
Open

markdown: fix hyperlink rendering and detection#1442
simonklee wants to merge 3 commits into
mainfrom
ot-fix-markdown-links

Conversation

@simonklee

Copy link
Copy Markdown
Member

Make named and bare links clickable without exposing their destinations
when the terminal supports OSC 8. Preserve visible URL fallbacks
elsewhere and keep links intact across formatting, streaming, wrapping,
and late terminal capability detection.

Fix #1439

Make named and bare links clickable without exposing their destinations
when the terminal supports OSC 8. Preserve visible URL fallbacks
elsewhere and keep links intact across formatting, streaming, wrapping,
and late terminal capability detection.

Fix #1439
@simonklee simonklee self-assigned this Aug 26, 2026
Streaming Markdown updates could expose stale link labels or targets,
while hover feedback mutated rendered text and repeatedly resolved URLs.
Keep previews consistent and hover feedback responsive without altering
rendered content.
@kommander

Copy link
Copy Markdown
Collaborator

Blocker: links lose OSC 8 metadata after preceding multibyte text because Tree-sitter byte offsets are treated as JS string offsets. Please add named + bare Unicode regression coverage.

@simonklee

Copy link
Copy Markdown
Member Author

Blocker: links lose OSC 8 metadata after preceding multibyte text because Tree-sitter byte offsets are treated as JS string offsets. Please add named + bare Unicode regression coverage.

👍🏻

ASCII-only tests miss mismatches between string offsets and terminal
cell positions. Check Unicode link targets after wide and combining
characters to catch misplaced hyperlink metadata, with or without
terminal hyperlink support.
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.

Make Markdown hyperlinks clickable, compact, and usable with mouse capture

2 participants