posativ / acrylamid

(unmaintained) static blog generator in python with incremental rendering ⛺
http://posativ.org/acrylamid/
Other
277 stars 40 forks source link

How to pass parameters to pandoc filter #243

Open ghost opened 8 years ago

ghost commented 8 years ago

Hi,

How can I pass pandoc --from markdown --to html --mathjax --biblio mybiblio.bib to acrylamid pandoc filter. It seems, for example, that:

FILTERS = ['pandoc+Markdown+mathjax', 'hyphenate', 'h1']

does not display correctly math because it does not include MathJax CDN...

ghost commented 8 years ago

There are two kind of parameters in pandoc: ones which are passed with + in markdown (extensions) and regular arguments (with --). For example: pandoc --from markdown+definition_lists --mathml --to html5

What can I pass extensions (+ items in markdown) in acrylamid?

posativ commented 8 years ago

Not possible, the pandoc "binding" is not really advanced and only supports the simples pandoc call (see pandoc.py)

ghost commented 8 years ago

And I suppose it's also impossible to pass something like --biblio mybib.bi?

posativ commented 8 years ago

Not possible.