mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
UseAutoLinks would be nice if it excluded punctuation like github #155
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 @topherdavis on GitHub (Nov 9, 2017).
People will frequently terminate a sentence or join a sentence fragment by referring to url. Github excludes these punctuation marks from the autolink, but Markdig doesn't. It would be great if they were excluded from the autolink.
Examples of usage:
In the end of url example Markdig does not match the github style:
Markdig style:
http://www.travefy.com!-><p><a href="http://www.travefy.com!">http://www.travefy.com!</a></p>Github style:
http://www.travefy.com!-><p><a href="http://www.travefy.com">http://www.travefy.com</a>!</p>In the intra-url example Markdig matches the github style:
Markdig style:
http://www.travefy.com!/foo-><p><a href="http://www.travefy.com!/foo">http://www.travefy.com!/foo</a></p>Github style:
http://www.travefy.com!/foo-><p><a href="http://www.travefy.com!/foo">http://www.travefy.com!/foo</a></p>@xoofx commented on GitHub (Nov 9, 2017):
I agree. Currently no time to work on this, but PR welcome.
@xoofx commented on GitHub (Nov 10, 2017):
Actually github has now a commonmark extension spec for autolink but need also to follow this issue https://github.com/github/cmark/issues/27
@xoofx commented on GitHub (Nov 17, 2017):
Fixed by commit
964538e