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

Please add option to disable math highlighting #196

Closed
bpj opened this issue Sep 14, 2016 · 4 comments · Fixed by #378
Closed

Please add option to disable math highlighting #196

bpj opened this issue Sep 14, 2016 · 4 comments · Fixed by #378

Comments

@bpj
Copy link

bpj commented Sep 14, 2016

I'm a Humanities guy, never do math typesetting and disable math related Pandoc extensions in my pandoc wrapper script, and I guess I'm not the only one. When you don't do math blocks of text going Special because you type a $ or \( is just plain annoying. I thought I could just set hi clear pandocLaTeXInlineMath in after/syntax/pandoc.vim, but the contained LaTeX higlighting, with the group texMathZoneV still makes the regions in question Special, and also clearing the texMathZoneV group doesn't have the desired effect. Setting pandocLaTeXInlineMath to Normal also is not quite what I want, since I still want emphasis etc. to be highlighted normally. Thus I wish there were an option variable (and whatever is needed to make it work) to turn off math highlighting inside Markdown, possibly either buffer locally or globally for those who only do math sometimes.

@andrew-vant
Copy link

andrew-vant commented Jan 31, 2017

Seconding this. Having to escape dollar signs is more irritating than it sounds like it should be. I managed to disable the highlighting by deleting lines 213-225, but I've no idea if that has side effects and I don't know how to do it "correctly."

@tinyheero
Copy link

Has anyone figured out how to achieve this through a configuration without having to directly remove those lines of code that @andrew-vant mentioned above?

@bpj
Copy link
Author

bpj commented Aug 27, 2020 via email

@tnyeanderson
Copy link
Contributor

tnyeanderson commented Jun 8, 2022

I'm working on this in #378. Right now I've only implemented the inlinemath blacklist option which solves the issue of having to escape normal dollar signs. Not sure if that would close this issue completely, but it makes some progress!

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

Successfully merging a pull request may close this issue.

4 participants