aboutsummaryrefslogtreecommitdiff
path: root/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Utils.hs
diff options
context:
space:
mode:
authorAlbert Krewinkel <[email protected]>2024-05-04 22:06:26 +0200
committerAlbert Krewinkel <[email protected]>2024-05-04 22:17:01 +0200
commitc45f163b4d6ee64faf2c10a1bc58f89f0ff2f174 (patch)
tree227090ce9c1a51df3a24e129b7b459c2c3774098 /pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Utils.hs
parent6000a1739469b644e5ba8905c631063bed99c5f7 (diff)
Lua: fix generated docs.
Update and fix docs for `pandoc.types.Version` and `pandoc.utils.type`.
Diffstat (limited to 'pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Utils.hs')
-rw-r--r--pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Utils.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Utils.hs b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Utils.hs
index 7ebd125d4..5fddf6e8b 100644
--- a/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Utils.hs
+++ b/pandoc-lua-engine/src/Text/Pandoc/Lua/Module/Utils.hs
@@ -369,10 +369,12 @@ type' = defun "type"
, "function."
, ""
, "Usage:"
+ , ""
, " -- Prints one of 'string', 'boolean', 'Inlines', 'Blocks',"
, " -- 'table', and 'nil', corresponding to the Haskell constructors"
, " -- MetaString, MetaBool, MetaInlines, MetaBlocks, MetaMap,"
, " -- and an unset value, respectively."
+ , ""
, " function Meta (meta)"
, " print('type of metavalue `author`:', pandoc.utils.type(meta.author))"
, " end"