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

Using ``` words ``` on a single line cause syntax highlighting to end of file

Open m-fonseca opened this issue 5 years ago • 3 comments

If you do ``` test ``` I would expect highlighting similar to below:

this is a test, it should only highlight a single word. this is more text. and more text.

But instead I get highlighting similar to this:

this is a test, it should only highlight a single word. this is more text. and more text.

Basically the code highlighting runs on until the end of the document.

m-fonseca avatar Jun 30 '20 04:06 m-fonseca

Use ` instead of ``` for in-line codes.

flw-cn avatar Sep 11 '20 01:09 flw-cn

I personally do, but ```foo``` appears to be valid markdown (well at-least github will parse it anyway).

m-fonseca avatar Sep 11 '20 16:09 m-fonseca

I can understand how you feel. But markdown is a very loose format and there are many different implementations, so far vim-markdown is strictly divided between ``` and `. Maybe you could try to implement it? It looks like @plasticboy hasn't taken care of this repository in two years.

flw-cn avatar Sep 11 '20 17:09 flw-cn