From ba4b9db16d5f8bdfb26f8c0d344bd8ce78cf8ddd Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Tue, 26 Dec 2017 10:24:12 -0800 Subject: Tweaks to lua-filters.md docs --- doc/lua-filters.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'doc') 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} -- cgit v1.2.3