git.iko.soy/typeable/pandoc
on master help sign in
Fixed `--filter` so it doesn't search PATH for a filter with a path.
b1a8f1fJohn MacFarlane
pandoc.hs+3−1
@@ -96,7 +96,9 @@ isTextFormat s = takeWhile (`notElem` "+-") s `notElem` ["odt","docx","epub","ep
96
96
97externalFilter :: FilePath -> [String] -> Pandoc -> IO Pandoc
97externalFilter :: FilePath -> [String] -> Pandoc -> IO Pandoc
98externalFilter f args' d = do
98externalFilter f args' d = do
99+ mbexe <- if '/' `elem` f -- don't check PATH if filter name it has a path
100+ then return Nothing
99− mbexe <- findExecutable f
101+ else findExecutable f
100 (f', args'') <- case mbexe of
102 (f', args'') <- case mbexe of
101 Just x -> return (x, args')
103 Just x -> return (x, args')
102 Nothing -> do
104 Nothing -> do