Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Andygol opened this issue Mar 27, 2023 · 1 comment
Open

Comments

@Andygol
Copy link

Andygol commented Mar 27, 2023

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. 馃槩

@Andygol
Copy link
Author

Andygol commented Mar 27, 2023

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:))))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant