Tell us about your environment
MacOS Monterey 12.0.1
What did you do? Please include the actual source code causing the issue.
Place emails in any markdown file, e.g.:
email@gmail.com
student@u.nus.edu
with.dot@mail.sg
What did you expect to happen?
The emails should not be logged as warnings for invalid intralinks.
What actually happened? Please include the actual, raw output.

The email is prepended with a filepath (e.g. userGuide/mailto:), which is confusing since this prefix does not appear in the source files at all, and doing a search on userGuide/mailto:email@gmail.com will not give any results for an author trying to find where the invalid link is.
This is because convertRelativeLinks is called on all links, including emails, so a filepath is prepended onto emails.
I think a possible fix would be to check for emails (conveniently, they can be identified by a mailto: prefix) and not convert them to relative links, and possibly exclude them from validateIntralink calls.
Tell us about your environment
MacOS Monterey 12.0.1
What did you do? Please include the actual source code causing the issue.
Place emails in any markdown file, e.g.:
What did you expect to happen?
The emails should not be logged as warnings for invalid intralinks.
What actually happened? Please include the actual, raw output.

The email is prepended with a filepath (e.g.
userGuide/mailto:), which is confusing since this prefix does not appear in the source files at all, and doing a search onuserGuide/mailto:email@gmail.comwill not give any results for an author trying to find where the invalid link is.This is because
convertRelativeLinksis called on all links, including emails, so a filepath is prepended onto emails.I think a possible fix would be to check for emails (conveniently, they can be identified by a
mailto:prefix) and not convert them to relative links, and possibly exclude them fromvalidateIntralinkcalls.