Email link gets parsed as relative link
andreasvirkus opened this issue ยท 6 comments
andreasvirkus commented
Bug report
Steps to reproduce
Insert a mailto:
link in a markdown file, e.g.
Send me an [e-mail](mailto:some@email.com)
Repl: https://codesandbox.io/s/saber-email-link-qb07d
What is expected?
The rendered HTML link should be
Send me an <a href="mailto:some@email.com">e-mail</a>
What is actually happening?
The root domain is added before the link
Send me an <a href="https://current-domain.com/mailto:some@email.com">e-mail</a>
Other relevant information
- Result of running
saber -v
:0.9.1
- Does this issue occur when all plugins are disabled? Yes
egoist commented
This was fixed during a refactor, will be available in next release soon.
egoist commented
Fixed in v0.10.0
gaoryrt commented
or just use [e-mail](mailto://some@email.com)
andreasvirkus commented
@gaoryrt any reference that that is valid html?
gaoryrt commented
It just opens a new email window sent to //some@email.com
,
the double slash (//
) won't be considered as a relative link,
which lead to this bug.
andreasvirkus commented
Okay, thanks. I wouldn't bet my money on all e-mail clients parsing that correctly though.