markdown-oxide icon indicating copy to clipboard operation
markdown-oxide copied to clipboard

Recognize markdown reference link in form of link text with spaces

Open clobrano opened this issue 1 year ago • 2 comments
trafficstars

Disclaimer: I am not entirely sure this is up to markdown-oxide, so excuse me in advance if not.

I noticed that markdown reference links in form of link text (an example below) are recognized only if there are no spaces, however I think spaces should be supported (most markdown renderers do support them, for example on GitLab)

example

1. [reference-link-without-spaces]
2. [reference link with spaces]

then, somewhere in the page you also have
[reference-link-without-spaces]: https://somewhere.com
[reference link with spaces]: https://somewhereelse.com

The first link is recognized, and I can use for example nmap('K', vim.lsp.buf.hover, 'Hover Documentation') to show the floating window with information. The second link is not recognized instead.

clobrano avatar Jul 11 '24 12:07 clobrano

Hey! Thank you for reporting

Feel-ix-343 avatar Jul 12 '24 00:07 Feel-ix-343

I am making a new parser for v1 that is much more align to typical markdown. This feature will be part of that!

Feel-ix-343 avatar Aug 05 '24 23:08 Feel-ix-343

as this is planned v1 => not a current issue; closing

Feel-ix-343 avatar Sep 09 '24 04:09 Feel-ix-343

if I forget to implement in v1, please reopen (if I don't!)

Feel-ix-343 avatar Sep 09 '24 04:09 Feel-ix-343