vim-pandoc / vim-pandoc-syntax

pandoc markdown syntax, to be installed alongside vim-pandoc
MIT License
425 stars 61 forks source link

Correct syntax highlighting for inline LaTeX #367

Open user202729 opened 2 years ago

user202729 commented 2 years ago

Pandoc has the feature

```{=latex}
code...

to embed LaTeX.

However currently it's not possible to highlight the code inside correctly

```vim
let g:pandoc#syntax#codeblocks#embeds#langs = [
            \ "latex=tex",
            \ "{=latex}=tex",  " <--- this does not work
            \ "python",
            \ ]