aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pandoc.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/pandoc.hs b/pandoc.hs
index 588723322..6281113cb 100644
--- a/pandoc.hs
+++ b/pandoc.hs
@@ -96,7 +96,9 @@ isTextFormat s = takeWhile (`notElem` "+-") s `notElem` ["odt","docx","epub","ep
externalFilter :: FilePath -> [String] -> Pandoc -> IO Pandoc
externalFilter f args' d = do
- mbexe <- findExecutable f
+ mbexe <- if '/' `elem` f -- don't check PATH if filter name it has a path
+ then return Nothing
+ else findExecutable f
(f', args'') <- case mbexe of
Just x -> return (x, args')
Nothing -> do