aboutsummaryrefslogtreecommitdiff
path: root/data/sample.lua
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2022-10-03 09:55:10 +0200
committerJohn MacFarlane <[email protected]>2022-10-03 08:47:32 -0700
commit3b0e70072023d519cfb97d25ab668cf0284a5e24 (patch)
tree50549a1602036f0a8910f0f591d1af9b4b438c42 /data/sample.lua
parent132931a49190e9ed7706f0e58d6e965b68c188c2 (diff)
Lua: add function `pandoc.write_classic`.
The function can be used to convert a classic writer into a new-style writer by setting it as the value of `Writer`: ``` lua Writer = pandoc.write_classic ``` or to fully restore the old behavior: ``` lua function Writer (doc, opts) PANDOC_DOCUMENT = doc PANDOC_WRITER_OPTIONS = opts load(PANDOC_SCRIPT_FILE)() return pandoc.write_classic(doc, opts) end ```
Diffstat (limited to 'data/sample.lua')
0 files changed, 0 insertions, 0 deletions