tel: is parsed as valid auto inline link <a href="tel"></a>: #401

Closed
opened 2026-01-29 14:35:48 +00:00 by claunia · 0 comments
Owner

Originally created by @mingwli on GitHub (Sep 25, 2020).

Hi there, markdig is really wonderful and works like a charm in docfx.

However we recently encountered below case for autolink.
tel: is parsed as valid inline link <a href="tel"></a>:. For such case, I think there should also be a Post-check like in AutoLinkParser.cs#L138

Here's our current workaround in docfx
docfx#6594

cc @yufeih @live1206

Originally created by @mingwli on GitHub (Sep 25, 2020). Hi there, markdig is really wonderful and works like a charm in [docfx](https://github.com/dotnet/docfx/tree/v3). However we recently encountered below case for autolink. `tel: ` is parsed as valid inline link `<a href="tel"></a>:`. For such case, I think there should also be a `Post-check` like in [AutoLinkParser.cs#L138](https://github.com/lunet-io/markdig/blob/0017dbffc421f4703fd35f31f515f2326e05bb82/src/Markdig/Extensions/AutoLinks/AutoLinkParser.cs#L138) Here's our current workaround in docfx [docfx#6594](https://github.com/dotnet/docfx/pull/6594) cc @yufeih @live1206
claunia added the bugPR Welcome! labels 2026-01-29 14:35:49 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#401