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

Multi-line links inside lists confuse syntax highlighting.

Open alercah opened this issue 8 years ago • 2 comments

Links that span multiple lines inside lists confuse the highlighting:

1. [foo
     bar](baz)

In this case, "foo bar" should get the link highlight. Instead, "foo" gets the link highlight, "bar" does not, and then the rest of the document (!) gets highlighted as links.

alercah avatar Mar 20 '17 18:03 alercah

Removing markdownLineStart from the contains on markdownLinkText seems to fix it. Can you try that for a week and report back as to whether that causes any problems?

tpope avatar Mar 21 '17 02:03 tpope

And if there aren't any issues, a pull request would be great.

tpope avatar Mar 21 '17 02:03 tpope