preservim / vim-markdown

Markdown Vim Mode
4.69k stars 524 forks source link

code fenced block for lua not working well #634

Open laoshaw opened 1 year ago

laoshaw commented 1 year ago

image

which code syntax highlighter is used by vim-markdown?

alerque commented 1 year ago

The code blocks should just be passed back to VIM for whatever highlighting it would do for a given filetype. Are you setting the language of your code blocks, e.g.:

```lua
local foo = true
```
laoshaw commented 1 year ago

yes, I made sure my .vimrc has only one Plug, that is vim-markdown, all lua files are syntax highlighted fine, but not within a markdown lua block:

image