mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-22 04:04:05 +00:00
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:
parent
0363a10c69
commit
620239bd3f
3 changed files with 58 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue