mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-07 21:42:25 +00:00
Autolink does not show the full text #313
Reference in New Issue
Block a user
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?
Originally created by @yishengjin1413 on GitHub (Jul 16, 2019).
For the following example, Autolink does not show the full text.
BabelMark result :
The link url is right but the link text missing the ending
7.@MihaZupan commented on GitHub (Jul 16, 2019):
The issue here is the difference between the definition of a regular link and an autolink.
CommonMark states that backslashes will not work in autolinks (but will in links).
@yishengjin1413 As this is an Autolink, this means that the backslash in this case is not discarded but percent-encoded.
I believe the correct HTML for this markdown is
In your example, the URL
https://blogs.windows.com/windowsexperience/2017/01/23/Introducing-Windows-Defender-Security-Center/%5C#m4mv5W0GYKZpGvfA.97will not be recognised as valid on the server anymore.@yishengjin1413 commented on GitHub (Jul 17, 2019):
@MihaZupan Make sense. Thanks for your explanation and fixing the bug.