Pasting markdown style link with label makes nested link #6800
Labels
can-be-reproduced
editor:copy-paste
Clipboard data attached is appreciated. See menu - bug report - clipboard inspector
:type/enhancement
Enhancement to product. Does not affect the overall basic use.
What happened?
I regularly use the feature of copying a URL, selecting some text in Logseq, and pasting to link to that text. But sometimes I copy some text instead. When I paste I expect it to replace the highlighted text with what was in the clipboard. But instead it tries to make a link, which makes at best a broken link and at worst some malformed Markdown.
This could be viewed as just "user error" since in every case I can think of I could have done something different, but I still stumble on it often, and it should be not too hard to check that the thing you're pasting is actually a valid link target. (Some non-URLs could be link targets, like asset file paths, so maybe this is a bit tricky.)
Reproduce the Bug
Expected Behavior
The selected text is replaced by the text on the clipboard, since it wasn't a valid link target.
Screenshots
No response
Desktop Platform Information
macOS 12.6, app 0.8.7
Mobile Platform Information
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: