mirror of
https://github.com/anomalyco/opentui.git
synced 2026-04-24 20:45:56 +03:00
[PR #707] fix(markdown): skip redundant href in conceal mode for autolinks #1508
Labels
No labels
bug
core
documentation
feature
good first issue
help wanted
pull-request
question
react
solid
tmux
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/opentui#1508
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/anomalyco/opentui/pull/707
Author: @mocksoul
Created: 2/19/2026
Status: 🔄 Open
Base:
main← Head:fix/conceal-link-dedup📝 Commits (2)
3bf871bfix(markdown): skip redundant href in conceal mode for autolinks59995cdtest: update snapshot for incomplete link after conceal fix📊 Changes
2 files changed (+9 additions, -5 deletions)
View changed files
📝
packages/core/src/renderables/Markdown.ts(+8 -3)📝
packages/core/src/renderables/__tests__/Markdown.test.ts(+1 -2)📄 Description
When conceal mode renders a link where the label text equals the href (e.g. bare URLs and autolinks), the URL was displayed twice:
This adds a check to skip the
(href)suffix when the label matches the URL. Named links like[docs](https://example.com)still render asdocs (https://example.com).🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.