aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2013-08-08 11:09:00 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2013-08-08 11:09:00 -0700
commit2677e8466311e2becdd7f65f1f6c23d559db14aa (patch)
tree1dbf83aac3f2944b1b054712198676d4fb083b05 /README
parent9aa9d5cf68386acd127427cc62f6004b2a17057a (diff)
downloadpandoc-2677e8466311e2becdd7f65f1f6c23d559db14aa.tar.gz
Revert "Revert "Added `--filter` option.""
This reverts commit 2e5edbb27837372f658b1abbe05371be57415847.
Diffstat (limited to 'README')
-rw-r--r--README8
1 files changed, 8 insertions, 0 deletions
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.