jimhester / knitrBootstrap

A framework to create bootstrap styled HTML reports from knitr Rmarkdown.
Other
274 stars 61 forks source link

Support custom pandoc args #181

Closed humburg closed 9 years ago

humburg commented 9 years ago

This makes it possible to specify _pandocargs in the yaml front matter (as is possible with the rmarkdown document formats) to further customise the pandoc conversion process. I've added code to ensure that the current arguments

--no-wrap

and

--variable mathjax-url:https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML

are always added to the list if they aren't provided by the user. Note that as written currently a different mathjax url will be accepted. Not sure whether that is an issue (although it does provide more flexibility for those who would like to change some MathJAX options).

jimhester commented 9 years ago

I think the ability to override the mathjax url seems like a good addition actually.

As is allowing specification of all pandoc arguments, thank you for another useful contribution!