From 984a82a9b81ef07bd29bb14701503a8a33ff2c81 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Wed, 19 Feb 2020 16:56:20 -0800 Subject: Text.Pandoc.App: set resource path at the beginning... ...so it can affect things like include-in-header. See #5982. --- src/Text/Pandoc/App.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Text/Pandoc/App.hs b/src/Text/Pandoc/App.hs index 0b6a72632..aeae3ec39 100644 --- a/src/Text/Pandoc/App.hs +++ b/src/Text/Pandoc/App.hs @@ -125,6 +125,8 @@ convertWithOpts opts = do runIO' $ do setUserDataDir datadir + setResourcePath (optResourcePath opts) + setInputFiles (fromMaybe ["-"] (optInputFiles opts)) setOutputFile (optOutputFile opts) @@ -268,7 +270,6 @@ convertWithOpts opts = do writerName == "markdown_github") $ report $ Deprecated "markdown_github" "Use gfm instead." - setResourcePath (optResourcePath opts) mapM_ (uncurry setRequestHeader) (optRequestHeaders opts) doc <- sourceToDoc sources >>= -- cgit v1.2.3