fletcher / MultiMarkdown-4

This project is now deprecated. Please use MultiMarkdown-6 instead!
https://github.com/fletcher/MultiMarkdown-5
Other
306 stars 59 forks source link

Add LaTeX passthru mode #139

Open silum opened 8 years ago

silum commented 8 years ago

Hi Fletcher,

This pull request contains two patches, the first simply kills redundant trailing whitespace in multimarkdown.c. This patch introduces no functional change at all.

The second patch adds a -p command line switch that disables LaTeX command escaping while outputting LaTeX. This allows LaTeX code in the original Markdown text to pass through unmodified into the output document. This is to allow one the option of not having to escape LaTeX code in Scrivener with HTML comment markers. The LaTeX passthru switch only has an effect if the output mode is LaTeX.