Skip to content

bug: Markdown inside LaTeX blocks should *not* be rendered #225

@henrysheehy

Description

@henrysheehy

Did you check existing issues?

  • I have read all the tree-sitter docs if it relates to using the parser
  • I have searched the existing issues

Tree-Sitter CLI Version, if relevant (output of tree-sitter --version)

No response

Describe the bug

LaTeX blocks' equals sign are rendered as headings.

Steps To Reproduce/Bad Parse Tree

Consider

Embed it into the full Hilbert space as:
$$
\widetilde{𝖲}_{𝛅} 
=
\left(𝖲_{𝛅}^{(𝐍,\text{bc})}/𝖬\right)
\otimes
I_{\text{int}}
\otimes
I_{\text{spin}}
\otimes
I_{\text{Nambu}}.
$$

The $=$ symbol on its own line causes highlighting of the above lines as markdown headings. Similarly with $-$. $*$ and $+$ cause bullets to appear.

Expected Behavior/Parse Tree

LaTeX blocks should not have markdown rendering occurring inside them.

Repro

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions