From 3e77ea4792979879a80e67f20712766e4af2fdf5 Mon Sep 17 00:00:00 2001
From: John MacFarlane <jgm@berkeley.edu>
Date: Sun, 1 Oct 2017 15:23:20 -0700
Subject: Lua: added 'pipe', which encapsulates
 Text.Pandoc.Process.pipeProcess.

This is hard to do in lua, so it's helpful to provide this.
---
 doc/lua-filters.md | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

(limited to 'doc/lua-filters.md')

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
 
-- 
cgit v1.2.3