HTML Link with URL text tries to render twice when AutoLink() is on #61

Closed
opened 2026-01-29 14:24:17 +00:00 by claunia · 1 comment
Owner

Originally created by @RickStrahl on GitHub (Oct 11, 2016).

If you have a link like this when Autolink is enabled:

<a href="http://somewhere.com" target="top">http://somewhere.com</a>

the parser produces:

http://somehwere.com</a>

Looks like AutoLink needs to ensure it's not already inside of a link or link text before expanding a URL.

Originally created by @RickStrahl on GitHub (Oct 11, 2016). If you have a link like this when Autolink is enabled: `<a href="http://somewhere.com" target="top">http://somewhere.com</a>` the parser produces: `http://somehwere.com</a>` Looks like AutoLink needs to ensure it's not already inside of a link or link text before expanding a URL.
claunia added the bug label 2026-01-29 14:24:17 +00:00
Author
Owner

@xoofx commented on GitHub (Oct 11, 2016):

Ah 😨 sorry for this regression 😅
This should be fixed by commit 81b8dce (with relevant additional tests)
I have included also another case with regular markdown links that could also interfere

@xoofx commented on GitHub (Oct 11, 2016): Ah 😨 sorry for this regression 😅 This should be fixed by commit 81b8dce (with relevant additional tests) I have included also another case with regular markdown links that could also interfere
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#61