summaryrefslogtreecommitdiff
path: root/doc/lua-filters.md
diff options
context:
space:
mode:
authorAlbert Krewinkel <albert@zeitkraut.de>2021-12-28 16:33:41 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2022-01-01 14:31:42 -0800
commit1e60181ee3058fab78e18b8f534c0761c7ed8fb7 (patch)
tree86d7f6c2c4f0a774b5f4bd2fcae6c2002a7fbfe8 /doc/lua-filters.md
parentb5da58e8b412a7f32d0e64f86a4db9559b544814 (diff)
Lua: provide global `PANDOC_WRITER_OPTIONS` [API change]
API changes: - The function T.P.Filter.applyFilters now takes a filter environment of type `Environment`, instead of a ReaderOptions value. The `Environment` type is exported from `T.P.Filter` and allows to combine ReaderOptions and WriterOptions in a single value. - Global, exported from T.P.Lua, has a new type constructor `PANDOC_WRITER_OPTIONS`. Closes: #5221
Diffstat (limited to 'doc/lua-filters.md')
-rw-r--r--doc/lua-filters.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md
index bacdabe00..ac04316e2 100644
--- a/doc/lua-filters.md
+++ b/doc/lua-filters.md
@@ -262,6 +262,11 @@ variables.
`PANDOC_READER_OPTIONS`
: Table of the options which were provided to the parser.
+`PANDOC_WRITER_OPTIONS`
+: Table of the options that will be passed to the writer.
+ While the object can be modified, the changes will **not**
+ be picked up by pandoc.
+
`PANDOC_VERSION`
: Contains the pandoc version as a [Version] object which
behaves like a numerically indexed table, most significant