diff options
Diffstat (limited to 'doc/lua-filters.md')
-rw-r--r-- | doc/lua-filters.md | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md index 6ab6d3718..e9ed704ad 100644 --- a/doc/lua-filters.md +++ b/doc/lua-filters.md @@ -1400,12 +1400,13 @@ Lua functions for pandoc scripts. Usage: -- within a file defining a pandoc filter: + local text = require('text') function Str(text) - return pandoc.Str(utf8.upper(text)) + return pandoc.Str(text.upper(text)) end return {pandoc.global_filter()} - -- the above is equivallent to + -- the above is equivalent to -- return {{Str = Str}} [`pipe (command, args, input)`]{#pipe} |