Ux suggestion: reveal markup on mouseup instead of mousedown

When left clicking on rendered markup in the markdown editor, it currently reveals the markdown immediately on mousedown

This can result in some slightly annoying/unpredictable behavior, such as the resulting cursor location being inconsistent (e.g. left click at very end of link > sometimes cursor ends up at very end of link, sometimes it ends up in the middle of link), and can sometimes result in accidentally highlighting text.

If you compare to Typora, Typora doesn't reveal the markup until you release left-click, which avoids both of these issues (Obsidian works this way as well). The cursor moves to the click location on mousedown, and then the markup expands on mouseup (so while the cursor can technically move from the exact click location, it consistently ends up where you clicked from a semantic perspective, e.g. at the end of the link in the below examples).

This also applies in the inverse direction (e.g. cursor is currently inside some revealed markup > left click on some plain text, markup at previous cursor position doesn't go back to rendered until left click is released).

Examples:

Joplin:

joplin-example

Typora:

typora-example

That makes sense and would improve the UX. I've created this task to track this: