fix(tui): prevent duplicate URL display for autolinked emails (#888)

Autolinked emails like user@example.com were rendered as
'user@example.com (mailto:user@example.com)' because the comparison
token.text === token.href failed (text lacks mailto: prefix).

Now strips mailto: prefix before comparing, so autolinked emails
display without redundant URL in parentheses.
This commit is contained in:
Michael Renner 2026-01-21 23:20:00 +01:00 committed by GitHub
parent 0363a10c69
commit 620239bd3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 58 additions and 1 deletions

View file

@ -6,6 +6,10 @@
- `codeBlockIndent` property on `MarkdownTheme` to customize code block content indentation (default: 2 spaces)
### Fixed
- Autolinked emails no longer display redundant `(mailto:...)` suffix in markdown output
## [0.49.2] - 2026-01-19
## [0.49.1] - 2026-01-18