Skip to content

fix(markdown): skip redundant href in conceal mode for autolinks#707

Open
mocksoul wants to merge 2 commits intoanomalyco:mainfrom
mocksoul:fix/conceal-link-dedup
Open

fix(markdown): skip redundant href in conceal mode for autolinks#707
mocksoul wants to merge 2 commits intoanomalyco:mainfrom
mocksoul:fix/conceal-link-dedup

Conversation

@mocksoul
Copy link
Copy Markdown
Contributor

When conceal mode renders a link where the label text equals the href (e.g. bare URLs and autolinks), the URL was displayed twice:

https://example.com (https://example.com)

This adds a check to skip the (href) suffix when the label matches the URL. Named links like [docs](https://example.com) still render as docs (https://example.com).

When conceal mode renders a link where the label text equals the href
(e.g. bare URLs and autolinks), the URL was shown twice:
`https://example.com (https://example.com)`

Now only shows `https://example.com` when label matches href.
Named links like `[docs](https://example.com)` still show as
`docs (https://example.com)`.
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Feb 19, 2026

@opentui/core

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core@59995cd

@opentui/react

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/react@59995cd

@opentui/solid

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/solid@59995cd

@opentui/core-darwin-arm64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-darwin-arm64@59995cd

@opentui/core-darwin-x64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-darwin-x64@59995cd

@opentui/core-linux-arm64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-linux-arm64@59995cd

@opentui/core-linux-x64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-linux-x64@59995cd

@opentui/core-win32-arm64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-win32-arm64@59995cd

@opentui/core-win32-x64

npm i https://pkg.pr.new/anomalyco/opentui/@opentui/core-win32-x64@59995cd

commit: 59995cd

@kommander
Copy link
Copy Markdown
Collaborator

Is this still relevant with recent refactors?

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.

2 participants