Description
Describe the feature or problem you’d like to solve
When rendering markdown, hyperlinks that wrap or are cut off get broken, such that a line with "https://git" and another with "hub.com/cli/cli" will have at least one link that doesn't work (or, worse, goes somewhere NSFW, etc.) and another line that probably won't be recognized as a link.
Fortunately, this issue was fixed in Glamour: charmbracelet/glamour#411
Once they cut a new release, it would be great to pick that up.
While I thought I opened or commented on a bug on this, I can't seem to find it. Apologies if it's dup'd.
Proposed solution
Hyperlinks in rendered markdown aren't broken if they wrap lines or are otherwise cut off.
Additional context
This is unrelated to years-long discussions on hyperlinks (OSC8) printed directly by gh
, though it might be worth revisiting that in 2025. At least as of 2022, the main concern seemed to be Mac's default Terminal app...though, doesn't everyone replace that with iTerm2 or something these days. 😉 (I do appreciate that problem, though).
But since you use Glamour anyway for markdown rendering, it would be good to pick this new version up to fix broken hyperlinks when it renders them.