jgm / pandocfilters

A python module for writing pandoc filters, with a collection of examples
BSD 3-Clause "New" or "Revised" License
512 stars 111 forks source link

Access output filename/dir in python filter #41

Open heidaga opened 8 years ago

heidaga commented 8 years ago

For image-related filters (gabc.py, lilypond.py, ...), is it possible to get the output image directory from Pandoc, as it is possible to know the format argument ? This could be handy.

jgm commented 8 years ago

You can communicate to a filter from pandoc by setting metadata fields. (Or, you could set an environment variable.)

+++ Ali SAAD [Apr 26 16 09:01 ]:

For image-related filters (gabc.py, lilypond.py, ...), is it possible to pass the output image directory from Pandoc, as it is possible to know the format argument ? This could be handy.

— You are receiving this because you are subscribed to this thread. Reply to this email directly or [1]view it on GitHub

References

  1. https://github.com/jgm/pandocfilters/issues/41