readme2tex icon indicating copy to clipboard operation
readme2tex copied to clipboard

Support different (pandoc) markdown syntaxes

Open rien333 opened this issue 6 years ago • 1 comments

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.

rien333 avatar Jun 03 '18 00:06 rien333

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...

cben avatar Jun 14 '18 15:06 cben