aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorCarlos Scheidegger <[email protected]>2024-03-27 11:22:10 -0700
committerGitHub <[email protected]>2024-03-27 12:22:10 -0600
commite4ac26d255ad8748c01301b3319975de39a8f43f (patch)
tree7ce1605a1499b666d922833fd4292179c9bbdf26 /doc
parent4c16d721d64bd41150dbcf3fddb68e8df6b91ea1 (diff)
Update lua-filters.md (#9611)
Fix formatting of `pandoc.utils.type` usage entry
Diffstat (limited to 'doc')
-rw-r--r--doc/lua-filters.md15
1 files changed, 10 insertions, 5 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md
index 2dcf76995..e1504ff13 100644
--- a/doc/lua-filters.md
+++ b/doc/lua-filters.md
@@ -4053,11 +4053,16 @@ argument has a string-valued metafield `__name`, then it returns
that string. Otherwise it behaves just like the normal `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
+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
Parameters: