diff options
| author | Albert Krewinkel <[email protected]> | 2022-10-27 22:04:59 +0200 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2022-10-27 22:09:39 +0200 |
| commit | 6c4d885bdaf8f31afafa5a785a3517a40b529408 (patch) | |
| tree | 269792ebd45c72ec758a497c5e3039ed8c5391c7 /pandoc-lua-engine/src/Text/Pandoc/Lua/Module | |
| parent | 91436ebbf45d8d0891053ebdfbb837c71c4bf33a (diff) | |
Lua: allow strings in place of compiled templates.
This allows to use a string as parameter to `pandoc.template.apply` and
in the WriterOptions `template` field.
Closes: #8321
Diffstat (limited to 'pandoc-lua-engine/src/Text/Pandoc/Lua/Module')
| -rw-r--r-- | pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Pandoc.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Pandoc.hs b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Pandoc.hs index b42bdc50f..aaca86b02 100644 --- a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Pandoc.hs +++ b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Pandoc.hs @@ -131,7 +131,7 @@ pushWithConstructorsSubtable constructors = do rawset (nth 3) pop 1 -- pop constructor table -otherConstructors :: LuaError e => [DocumentedFunction e] +otherConstructors :: [DocumentedFunction PandocError] otherConstructors = [ mkPandoc , mkMeta |
