For instance, given a cursor anywhere in bar on the Word foo/bar, inserting a link in normal mode will result in foo/[bar](bar.md). Arguably, the desired behavior should be [foo/bar](foo/bar.md).
I think it is safe to extend the capture to any non-whitespace character around the cursor.
For instance, given a cursor anywhere in
bar
on the Wordfoo/bar
, inserting a link in normal mode will result infoo/[bar](bar.md)
. Arguably, the desired behavior should be[foo/bar](foo/bar.md)
.I think it is safe to extend the capture to any non-whitespace character around the cursor.