Markdown-Edit icon indicating copy to clipboard operation
Markdown-Edit copied to clipboard

Don't paste reference hyperlinks when creating inline link

Open cyotek opened this issue 9 years ago • 0 comments

This is probably the thing about MDE that annoys me the most. I'll be happily typing away, start the syntax for inserting a hyperlink and then will paste a fully qualified URL I'd previously copied to the clipboard. MDE will then inconveniently wrap the pasted URL within < and > characters, unless it detects it is within a complete inline link.

So assuming _ in the line below is the cursor, then this sequence works fine.

[title](_) -> ctrl-v -> [title](pasted_)

Most times however I only open the bracket, paste the URL, then close the bracket. And then sigh, and delete the extra < and > characters.

[title](_ -> ctrl-v -> [title](<pasted>_

It would be really nice if whatever detection code you're using to determine whether to wrap the URL could handle the partial in-progress links. Failing that, an option to disable wrapping pasted URL's in < and > characters altogether would be nice.

cyotek avatar Mar 03 '17 17:03 cyotek