diff options
author | Albert Krewinkel <albert@zeitkraut.de> | 2018-10-14 17:28:15 +0200 |
---|---|---|
committer | Albert Krewinkel <albert@zeitkraut.de> | 2018-10-14 21:23:41 +0200 |
commit | 6082caf2331d041739bd2c99d628e2f075b8e130 (patch) | |
tree | b9c872e4c660d880f7b402de54405989a7fda587 /test/writer.haddock | |
parent | 983277c6ebad990be7df5ad68ded245a30c61ade (diff) | |
download | pandoc-6082caf2331d041739bd2c99d628e2f075b8e130.tar.gz |
Custom writer: provide PANDOC_DOCUMENT instead of Setup function
Custom writers have access to the global variable `PANDOC_DOCUMENT`. The
variable contains a userdata wrapper around the full pandoc AST and
exposes two fields, `meta` and `blocks`. The field content is only
marshaled on-demand, performance of scripts not accessing the fields
remains unaffected.
Diffstat (limited to 'test/writer.haddock')
0 files changed, 0 insertions, 0 deletions