@@ -321,9 +321,11 @@ testWithNormalize normalizer pandocPath testname opts inp norm =
321321 getActual = do
322322 mldpath <- Env.lookupEnv "LD_LIBRARY_PATH"
323323 mdyldpath <- Env.lookupEnv "DYLD_LIBRARY_PATH"
324+ mpdd <- Env.lookupEnv "pandoc_datadir"
324325 let env = ("TMP",".") :
325326 ("LANG","en_US.UTF-8") :
326327 ("HOME", "./") :
328+ maybe [] ((:[]) . ("pandoc_datadir",)) mpdd ++
327329 maybe [] ((:[]) . ("LD_LIBRARY_PATH",)) mldpath ++
328330 maybe [] ((:[]) . ("DYLD_LIBRARY_PATH",)) mdyldpath
329331
@@ -335,7 +337,7 @@ testWithNormalize normalizer pandocPath testname opts inp norm =
335337 -- filter \r so the tests will work on Windows machines
336338 else fail $ "Pandoc failed with error code " ++ show ec
337339 updateGolden = UTF8.writeFile norm . T.pack
338− options = ["--data-dir=../data","--quiet"] ++ [inp] ++ opts
340+ options = ["--quiet"] ++ [inp] ++ opts
339341
340342compareValues :: FilePath -> [String] -> String -> String -> IO (Maybe String)
341343compareValues norm options expected actual = do