Text.Pandoc.App: set resource path at the beginning...

...so it can affect things like include-in-header.

See #5982.
This commit is contained in:
John MacFarlane
2020-02-19 16:56:20 -08:00
parent 9feefa3931
commit 984a82a9b8
+2 -1
View File
@@ -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 >>=