pandoc-lua-engine 0.1 → 0.1.1
raw patch · 3 files changed
+11/−3 lines, 3 filesdep ~pandoc
Dependency ranges changed: pandoc
Files
- pandoc-lua-engine.cabal +2/−2
- src/Text/Pandoc/Lua/Marshal/WriterOptions.hs +6/−1
- test/lua/module/globals.lua +3/−0
pandoc-lua-engine.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: pandoc-lua-engine-version: 0.1+version: 0.1.1 build-type: Simple license: GPL-2.0-or-later license-file: COPYING.md@@ -113,7 +113,7 @@ , hslua-module-zip >= 1.0.0 && < 1.1 , lpeg >= 1.0.1 && < 1.1 , mtl >= 2.2 && < 2.4- , pandoc >= 3.0 && < 3.1+ , pandoc >= 3.1 && < 3.2 , pandoc-lua-marshal >= 0.2 && < 0.3 , pandoc-types >= 1.22 && < 1.24 , parsec >= 3.1 && < 3.2
src/Text/Pandoc/Lua/Marshal/WriterOptions.hs view
@@ -55,7 +55,12 @@ <#> 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 })
test/lua/module/globals.lua view
@@ -8,6 +8,9 @@ -- WriterOptions and its components. UPDATE THE DOCS if anything changes. return { group 'PANDOC_WRITER_OPTIONS' {+ test('chunk_template', function ()+ assert.are_equal(type(PANDOC_WRITER_OPTIONS.chunk_template), 'string')+ end), test('cite_method', function () assert.are_equal(type(PANDOC_WRITER_OPTIONS.cite_method), 'string') end),