Show Markdown link URLs on hover - #8
Conversation
A Text left at AutoText renders anything Qt::mightBeRichText accepts as markup, and a link destination is arbitrary text out of the open document. A destination like `<img src="https://example.com/pixel">` was therefore parsed as HTML rather than shown, so the tooltip hid the one thing the user hovered to find out — and rich text loads remote images. The editor already pins textFormat to PlainText for the same reason. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Reviewed this and pushed one fix to the branch ( Fixed: the tooltip Still open, in the order I would care about them:
One thing that is a maintainer decision rather than something to fix here: hover is the only path to a destination, and the destination is both visually hidden and skipped by the caret, so keyboard-only and touchscreen users cannot inspect a link target at all. Heads up that this overlaps two other open PRs on the same files — #15 (strikethrough) and #17 (focus mode). Of the three this one is the least entangled: no semantic conflict with either, and its only textual conflicts are "both PRs appended something at the same spot". Against #15 that is two tests at the same anchor, and the highlighter merges cleanly — Tests pass (14 passed, 0 failed). |
Summary
Test plan
./bin/test