DCsunset / pandoc-include

A pandoc filter to allow file and header inclusion
MIT License
63 stars 14 forks source link

Any way to pass options to the executed pandoc? #7

Closed ma10 closed 4 years ago

ma10 commented 4 years ago

I execute pandoc with several options to controll the resulting format, etc.

So far, however, I haven't found any way to pass the same options to the executed pandoc via pandoc-include.

This will make some inconsistency in resulting files, between the including and the included files.

It would be extremely useful if I could list options to be passed to the child process in the header of files to be included, for example.

DCsunset commented 4 years ago

This feature has been added in v0.7.0. You could use pandoc-options to specify the pandoc options for included files.

See https://github.com/DCsunset/pandoc-include#header-options

ma10 commented 4 years ago

Ooop, I was looking at locally checked-out copy, which was not the latest.

This should be very useful!!

Thanks.

DCsunset commented 4 years ago

Feel free to open a new issue if you find some bugs in it.