byorgey / BlogLiterately

Command-line tool for formatting and publishing blog posts.
GNU General Public License v3.0
19 stars 4 forks source link

Add a 'rawlatex' option. #35

Closed carlohamalainen closed 6 years ago

carlohamalainen commented 6 years ago

I use the MathJax plugin on my hosted Wordpress blog, so I need LaTeX to pass through without any escaping.

The rawlatex option turns on the Pandoc extensions tex_math_dollars and tex_math_single_backslash so that inline and display LaTeX passes through unchanged.

byorgey commented 6 years ago

Looks great, thanks!

carlohamalainen commented 6 years ago

Thanks :-)

byorgey commented 6 years ago

Turns out the reason you needed to enable tex_math_dollars was that the LaTeX handling was broken in general --- Pandoc 2.0 changed the semantics of the default reader options so it now includes zero extensions, whereas it used to be whatever the default pandoc extensions are. i.e. BlogLiterately was quite broken and I hadn't realized it! Anyway, I think I have fixed things in version 0.8.6.1 (which also includes the --rawlatex option). Let me know how it works for you.

carlohamalainen commented 6 years ago

Confirm that 0.8.6.1 works for me. Cheers.