fix(markdown): hide URL suffix for concealed links#866
Open
brendandebeasi wants to merge 1 commit intoanomalyco:mainfrom
Open
fix(markdown): hide URL suffix for concealed links#866brendandebeasi wants to merge 1 commit intoanomalyco:mainfrom
brendandebeasi wants to merge 1 commit intoanomalyco:mainfrom
Conversation
Concealed markdown links rendered as 'text (url)' even though the link text is already an OSC 8 hyperlink (Cmd/Ctrl+click). Remove the redundant ' (url)' suffix when conceal is enabled so only the clickable link text is shown.
This was referenced Mar 24, 2026
|
maybe this could be an option instead of the default? for instance a new
would still allow links to work on terminals that don't support OSC8 like today when |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
(url)suffix from concealed markdown links — the link text is already an OSC 8 hyperlink (Cmd/Ctrl+click), so displaying the raw URL is unnecessaryContext
When
concealis enabled, markdown links[text](url)render astext (https://...). Since the link text already carries thelinkHreffor OSC 8 terminal hyperlinks, the parenthesized URL is redundant visual noise. This change makes concealed links render as justtext— clickable via Cmd/Ctrl+click in supporting terminals.The non-concealed (
conceal=false) path is unchanged and still shows the full[text](url)syntax.