From e4ac26d255ad8748c01301b3319975de39a8f43f Mon Sep 17 00:00:00 2001 From: Carlos Scheidegger <285675+cscheid@users.noreply.github.com> Date: Wed, 27 Mar 2024 11:22:10 -0700 Subject: Update lua-filters.md (#9611) Fix formatting of `pandoc.utils.type` usage entry --- doc/lua-filters.md | 15 ++++++++++----- 1 file 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: -- cgit v1.2.3