orbikm/mkdocs-ezlinks-plugin

()[mailto:*] must be treated as a protocol to avoid link conversion

Opened this issue · 1 comments

I faced with an issue when the markdown[email@example.com](mailto:email@example.com) was converted into relative link.

Unfortunately, I didn't find how to avoid conversion of e-mail protocol in the documentation. 😢

It seems that here is missed a rule to check for mailto: protocol

(?!(?P<md_protocol>[a-z][a-z0-9+\-.]*:\/\/))

It has to be somehow like that

-                    (?!(?P<md_protocol>[a-z][a-z0-9+\-.]*:\/\/))
+                    (?!(?P<md_protocol>(?:([a-z][a-z0-9+\-.]*:\/\/)|(mailto:))))