diff options
| author | Albert Krewinkel <[email protected]> | 2023-02-09 07:21:40 +0100 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2023-02-09 08:15:13 +0100 |
| commit | 9eee4a2582822f01cdc46d9576dd9ed17b135e2c (patch) | |
| tree | 4d39c676acf827e663434cf712c7c81d6e6bdc78 /pandoc-lua-engine/src | |
| parent | 4edc02d3b5b4a297bf0cd9ac2b16bb85c2b15d00 (diff) | |
Lua: add field `chunk_template` to WriterOptions objects [API change]
The PathTemplate type exported from Text.Pandoc.Chunks is now an
instance of the ToJSON and FromJSON classes.
Closes: #8607
Diffstat (limited to 'pandoc-lua-engine/src')
| -rw-r--r-- | pandoc-lua-engine/src/Text/Pandoc/Lua/Marshal/WriterOptions.hs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/pandoc-lua-engine/src/Text/Pandoc/Lua/Marshal/WriterOptions.hs b/pandoc-lua-engine/src/Text/Pandoc/Lua/Marshal/WriterOptions.hs index 960972bed..4ef5ae14d 100644 --- a/pandoc-lua-engine/src/Text/Pandoc/Lua/Marshal/WriterOptions.hs +++ b/pandoc-lua-engine/src/Text/Pandoc/Lua/Marshal/WriterOptions.hs @@ -55,7 +55,12 @@ typeWriterOptions = deftype "WriterOptions" <#> udparam typeWriterOptions "opts" "options to print in native format" =#> functionResult pushString "string" "Haskell representation" ] - [ property "cite_method" + [ property "chunk_template" + "Templates used to generate chunked HTML filenames (string)" + (pushViaJSON, writerChunkTemplate) + (peekViaJSON, \opts x -> opts{ writerChunkTemplate = x }) + + , property "cite_method" "How to print cites" (pushViaJSON, writerCiteMethod) (peekViaJSON, \opts x -> opts{ writerCiteMethod = x }) |
