diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/lua-filters.md | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/lua-filters.md b/doc/lua-filters.md index 851a061c5..f9c92528b 100644 --- a/doc/lua-filters.md +++ b/doc/lua-filters.md @@ -1075,6 +1075,20 @@ Lua functions for pandoc scripts. local fp = pandoc.mediabag.sha1("foobar") +[`pipe (command, args, input)`]{#mediabag-sha1} + +: Runs command with arguments, passing it some input, + and returns the exit code and the output. + + Returns: + + - Exit code from command. + - Output of command. + + Usage: + + local ec, output = pandoc.pipe("sed", {"-e","s/a/b/"}, "abc") + # Submodule mediabag |