Tweaks to lua-filters.md docs

This commit is contained in:
John MacFarlane 2017-12-26 10:24:12 -08:00
parent 718b2c5837
commit ba4b9db16d

View file

@ -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}