Problem
#497 fix landed (PR #503) but only partially works. The first bare URL in the hover popup is clickable, but subsequent bare URLs are still not registered as click targets.
Observed
- First bare URL in hover content: clickable
- All other bare URLs: styled as links (correct color) but not clickable
Likely cause
The bare URL detection or link registration logic in src/core/markdown.rs or src/core/engine/panels.rs may be stopping after the first match per line/block, or there's an off-by-one in the span offset tracking that causes subsequent URLs to not get registered in extract_hover_links().
Files to investigate
Repro
- Hover a Rust symbol with rich docs containing multiple bare URLs (e.g.
Vec, HashMap)
- Scroll to see multiple URLs in link color
- Click first URL — works
- Click any subsequent URL — no response
Related
Problem
#497 fix landed (PR #503) but only partially works. The first bare URL in the hover popup is clickable, but subsequent bare URLs are still not registered as click targets.
Observed
Likely cause
The bare URL detection or link registration logic in
src/core/markdown.rsorsrc/core/engine/panels.rsmay be stopping after the first match per line/block, or there's an off-by-one in the span offset tracking that causes subsequent URLs to not get registered inextract_hover_links().Files to investigate
src/core/markdown.rs—render_markdown()bare URL scanner (added in #497: Hover popup: bare URLs styled as links but not registered as clickable #503)src/core/engine/panels.rs—extract_hover_links()LinkUrl handling (added in #497: Hover popup: bare URLs styled as links but not registered as clickable #503)src/core/engine/tests.rs— existing tests may only cover single-URL casesRepro
Vec,HashMap)Related