mirror of
https://github.com/xoofx/markdig.git
synced 2026-02-03 21:36:36 +00:00
localhost autolinks #708
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 @joriszwart on GitHub (Nov 25, 2024).
It looks like auto linking doesn't work for localhost (and other single part domains):
This may be intentional, but I have not found anything like this in the autolink extension.
@dmitry-azaraev commented on GitHub (Nov 28, 2024):
This looks like method IsValidDomain requires to have at least two segments (i did not know if it is exist other assumptions about in other places).
49cf59b819/src/Markdig/Extensions/AutoLinks/AutoLinkParser.cs (L167)@snnz commented on GitHub (Nov 28, 2024):
GFM spec says:
and then:
One would think that "There must be at least one period" is related to the definition of the valid domain, but it seems to apply to the www autolinks only.
@joriszwart commented on GitHub (Feb 21, 2025):
So it's according to specifications.