diff options
author | Albert Krewinkel <albert+github@zeitkraut.de> | 2018-10-14 08:20:29 +0200 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2018-10-13 23:20:29 -0700 |
commit | 49544069a2615d9197380a11441aca4eeb02afb3 (patch) | |
tree | f3a0c83bf1db454ea2531294302380b55aa4b6ef /tools | |
parent | 8cee5b183e0cdbd0137b9bedb4728c8ef15f1145 (diff) | |
download | pandoc-49544069a2615d9197380a11441aca4eeb02afb3.tar.gz |
Custom writer: give full access to doc in optional Setup function (#4967)
Custom writers can specify an optional `Setup` function. The function
takes the full Pandoc document as input and should not return any value.
Users can use this function to configure the writer depending on the
given document's content or its metadata.
data/sample.lua: add sample use of Setup function.
The change allows to control the image format used to encode the image
produced from dot code.
Closes #4957
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions