vim-markdown
vim-markdown copied to clipboard
code block syntax highlight disappears when new block is added
Running default vim on ubuntu 20.04 with vim-markdown, here is what I got:
say I have two code blocks(one javascript one python) in one md file:
var x = 10
print("hi")
they're shown with color nicely. now if I add additional blocks (either javascript or python), all syntax-highlight will be gone immediately while I'm still typing.
this is reproducible easily.
re-open the code-block-becomes-colorless file, they're highlighted properly again.
I found a workaround to this issue : first type the language, then go to the beginning of the line and add the backticks, like so:
1 python
1 ```python
2 ```
With this the blocks stay highlighted correctly.
I confirm this workaround, looks like the back-ticks triggered something unnecessarily without this workaround.
+1, same issue here.