If markdown hyperlink syntax is added into markdown plain text, then clicking the link in the preview causes the URL location to change. This is not surprising, however this can cause work to be lost if not saved before the hyperlink is clicked.
A solution might be to render target="_blank" for all hyperlinks (in preview only), or implement a solution like gmail has where rather than the link being directly clickable, a popup displays with the option to visit the link (see attached screenshot).
I'm aware that the easiest option here is to just not click the link, but I expect this will catch some users out before they remember not to.
I'll consider this for future development
I think it's very good idea, lost of work can be often, especially working in side-by-side mode.
~I imagine with marked.js behind the scenes, this would be pretty easy.~
Just submitted a pull request implementing this.
It might be better to also have an option to always use target="_blank" for your rendered links
Hi, any update on this ?
Most helpful comment
It might be better to also have an option to always use
target="_blank"for your rendered links