aboutsummaryrefslogtreecommitdiff
path: root/MANUAL.txt
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-11-21 15:32:27 +0100
committerJohn MacFarlane <jgm@berkeley.edu>2016-11-21 15:32:27 +0100
commitac6dfe0b4efb601f24e444ac8a4059c4103881ef (patch)
tree6eb0a12af38f845bb85acaf7793276544ec53e71 /MANUAL.txt
parent8d7ecc27a19facf6c4b50a65ee1029c105aacdb2 (diff)
downloadpandoc-ac6dfe0b4efb601f24e444ac8a4059c4103881ef.tar.gz
Changed resolution of filter paths.
- We now first treat the argument of `--filter` as a full (absolute or relative) path, looking for a program there. If it's found, we run it. - If not, and if it is a simple program name or a relative path, we try resolving it relative to `$DATADIR/filters`. - If this fails, then we treat it as a program name and look in the user's PATH. Previously if you did `--filter foo` and you had `foo` in your path and also an executable `foo` in your working directory, the one in the path would be used. Now the one in the working directory is used. In addition, when you do `--filter foo/bar.hs`, pandoc will now find a filter `$DATADIR/filters/foo/bar.hs` -- assuming there isn't a `foo/bar.hs` relative to the working directory. @jkr note the slight revision of what we had before. This was motivated by the idea that one might clone filter repositories into the filters subdirectory; it is nice to be able to run them as `reponame/filtername`.
Diffstat (limited to 'MANUAL.txt')
-rw-r--r--MANUAL.txt8
1 files changed, 1 insertions, 7 deletions
diff --git a/MANUAL.txt b/MANUAL.txt
index 379c61ca5..0a6362e2e 100644
--- a/MANUAL.txt
+++ b/MANUAL.txt
@@ -426,7 +426,7 @@ Reader options
footnotes and links will not work across files. Reading binary
files (docx, odt, epub) implies `--file-scope`.
-`--filter=`*EXECUTABLE*
+`--filter=`*PROGRAM*
: Specify an executable to be used as a filter transforming the
pandoc AST after the input is parsed and before the output is
@@ -450,12 +450,6 @@ Reader options
pandoc filter libraries in [PHP], [perl], and
[javascript/node.js].
- If no directory is provided pandoc will look for executable or
- non-executable filters in the director `$DATADIR/filters`, and
- then for executable filters in the user's `PATH`. If you want to
- run a script in the working directory, preface the filename with
- `./`.
-
In order of preference, pandoc will look for filters in
1. a specified full or relative path (executable or