vim-pandoc / vim-pandoc-syntax

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

Detect math blocks that are children of list items #351

Open bertin0 opened 3 years ago

bertin0 commented 3 years ago

If I have a math block that is indented so that it is a child of a list item, pandoc treats it accordingly, but vim-pandoc doesn't recognize that it's a math block and so it doesn't enable syntax highlighting: For example, this math block doesn't get highlighted, but pandoc treats it as latex:

1.  Test

    $$
        f(x) &=x\\
    $$

Just realised this is an issue in vim-pandoc-syntax, sorry

user202729 commented 2 years ago

Note that this issue only happen if

1.  Test

    a $$
        f(x) &=x\\
    $$

As a workaround it's possible to disable detection of simple code blocks https://github.com/vim-pandoc/vim-pandoc-syntax/issues/221 (however simple code blocks will no longer works)

user202729 commented 2 years ago

Duplicate of #139