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

Markdown $formula$ support #134

Open
HaleTom opened this issue Jun 1, 2018 · 1 comment
Open

Markdown $formula$ support #134

HaleTom opened this issue Jun 1, 2018 · 1 comment

Comments

@HaleTom
Copy link

HaleTom commented Jun 1, 2018

I'm looking for to syntax highlight complex LaTeX equations written inside markdown like:

$ x^2 $
or
$$ x^2 $$

Would / could this plugin support math blocks in markdown?

Alternately, does it define syntax highlighting that I could use with something like this:

    "" Define certain regions
    " Block math. Look for "$$[anything]$$"
    syn region math start=/\$\$/ end=/\$\$/
    " inline math. Look for "$[not $][anything]$"
    syn match math_block '\$[^$].\{-}\$'

    "" Actually highlight those regions.
    hi link math Statement
@HaleTom HaleTom changed the title Markdown $formula$ supported? Markdown $formula$ support Jun 1, 2018
@gerw
Copy link
Contributor

gerw commented Jun 4, 2018

This plugin does not contain syntax highlighting for LaTeX. The syntax highlighting for LaTeX is part of the standard vim distribution.

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

No branches or pull requests

2 participants