Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detect math blocks that are children of list items #351

Open
bertin0 opened this issue Feb 10, 2021 · 2 comments
Open

Detect math blocks that are children of list items #351

bertin0 opened this issue Feb 10, 2021 · 2 comments
Labels

Comments

@bertin0
Copy link

bertin0 commented Feb 10, 2021

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

@bertin0 bertin0 closed this as completed Feb 10, 2021
@alerque alerque transferred this issue from vim-pandoc/vim-pandoc Feb 10, 2021
@alerque alerque reopened this Feb 10, 2021
@alerque alerque added the bug label Feb 10, 2021
@user202729
Copy link

user202729 commented Sep 1, 2021

Note that this issue only happen if

  • The formula is indented by at least 4 spaces, and
  • It's at the start of the line. (so this doesn't cause the error)
1.  Test

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

As a workaround it's possible to disable detection of simple code blocks #221 (however simple code blocks will no longer works)

@user202729
Copy link

Duplicate of #139

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants