tpope / vim-markdown

Vim Markdown runtime files
1.22k stars 191 forks source link

Reference links highlight #189

Closed samarulmeu closed 2 years ago

samarulmeu commented 2 years ago

I hope this is the right place for the issue I encounter. I must mention that I do not use specifically the vim-markdown as plugin, only plain vim.

So, in the official markdown specifications are defined what are called reference-style links that look something like This is [an example][id] reference-style link with the id defined later [id]: http://example.com/ "Optional Title Here".

The problem is with the way that reference links are rendered as you can see from this screenshot.

Screenshot_2022-05-03_11-09-44

The footnote explanation is nicely displayed, but for the reference only the first word (if not a link) is highlighted. Maybe a regex will check if a reference contains a link or not.

Thank you for your help and understanding!

tpope commented 2 years ago

So, in the official markdown specifications are defined what are called reference-style links that look something like This is [an example][id] reference-style link with the id defined later [id]: http://example.com/ "Optional Title Here".

Yes, and this is supported.

The problem is with the way that reference links are rendered as you can see from this screenshot.

I see only one "link" in the screenshot, it's on "ref2" and it's rendered just fine. The rest, that isn't Markdown.