From 2677e8466311e2becdd7f65f1f6c23d559db14aa Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Thu, 8 Aug 2013 11:09:00 -0700 Subject: Revert "Revert "Added `--filter` option."" This reverts commit 2e5edbb27837372f658b1abbe05371be57415847. --- README | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'README') diff --git a/README b/README index bc5d5619d..e85ca1905 100644 --- a/README +++ b/README @@ -259,6 +259,14 @@ Reader options require different kinds of images. Currently this option only affects the markdown and LaTeX readers. +`--filter=`*PATH* +: Specify an executable to be used as a filter transforming the + Pandoc AST after the input is parsed and before the output is + written. The executable should read JSON from stdin and write + JSON to stdout. The JSON must be formatted like pandoc's own + JSON input and output. Filters may be most easily created in Haskell, + using the utility function `toJsonFilter` from `Text.Pandoc`. + `--normalize` : Normalize the document after reading: merge adjacent `Str` or `Emph` elements, for example, and remove repeated `Space`s. -- cgit v1.2.3