Email link gets parsed as relative link
See original GitHub issueBug 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
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (2 by maintainers)
Top Results From Across the Web
Parse the relative link and absolute link using python
Just relative path. So I dont know how to get those relative links. My full project is in: https://github.com/MuneebKalathil/MaD.
Read more >How to link pages using relative URL in HTML? - Tutorialspoint
With relative URL we start automatically from the address the browser currently at then we add path components and then extension. Explicitly ...
Read more >Medium.com links parsed as mail links · Issue #161 - GitHub
Although in this case the link does not begin with a protocol, so it counts as a relative URL without a base, which...
Read more >Convert Relative Url to Absolute Url
My fix was to run my URL through tinyURL or go.USA.gov. That shortened URL was not recognized by SharePoint and my images showed...
Read more >URL handling options | Docs - TinyMCE
This will convert all URLs within the same domain to relative URLs. The URLs will be relative from the document_base_url.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Fixed in v0.10.0
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.