Tweaks to lua-filters.md docs
This commit is contained in:
parent
718b2c5837
commit
ba4b9db16d
1 changed files with 3 additions and 2 deletions
|
@ -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}
|
||||
|
|
Loading…
Reference in a new issue