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

Support different (pandoc) markdown syntaxes #20

Open
rien333 opened this issue Jun 3, 2018 · 1 comment
Open

Support different (pandoc) markdown syntaxes #20

rien333 opened this issue Jun 3, 2018 · 1 comment

Comments

@rien333
Copy link

rien333 commented Jun 3, 2018

When I convert a markdown file with pandoc to github flavor markdown with the -t gfm option, $$ ... $$ will get converted to \[ ...\] (not sure why). Any chance of supporting this syntax as well? Multimarkdown appears to have this/a non "$" based syntax for maths as well, for example.

@cben
Copy link

cben commented Jun 14, 2018

pandoc should allow control of exact syntax.
To preserve $inline$ and $$display$$ syntaxes, try -t gfm tex_math_dollars-tex_math_single_backslash-raw_tex (untested) UPDATE: that does't work, commonmark and the new gfm derived from it do not yet support any of the math extensions...
Does work with deprecated (but quite well working) -t markdown_github tex_math_dollars.

P.S. See https://github.com/cben/mathdown/wiki/math-in-markdown for the many, many syntaxes of math in markdown in various tools...

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