readme2tex
readme2tex copied to clipboard
Support different (pandoc) markdown syntaxes
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.
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...