git.iko.soy/typeable/pandoc
on master help sign in
Tweaks to lua-filters.md docs
commitba4b9db16d5f8bdfb26f8c0d344bd8ce78cf8ddd authorJohn MacFarlane <jgm@berkeley.edu> dateTue 26 Dec 2017, 10:24 (9 years ago) parent718b2c5
1 file changed+3−2
doc/lua-filters.md+3−2
doc/lua-filters.md+3−2
@@ -1400,12 +1400,13 @@ Lua functions for pandoc scripts.
14001400 Usage:
14011401
14021402 -- within a file defining a pandoc filter:
1403+ local text = require('text')
14031404 function Str(text)
1404− return pandoc.Str(utf8.upper(text))
1405+ return pandoc.Str(text.upper(text))
14051406 end
14061407
14071408 return {pandoc.global_filter()}
1408− -- the above is equivallent to
1409+ -- the above is equivalent to
14091410 -- return {{Str = Str}}
14101411
14111412[`pipe (command, args, input)`]{#pipe}