git.iko.soy/typeable/pandoc
on master help sign in
Text.Pandoc.App: set resource path at the beginning...

...so it can affect things like include-in-header. See #5982.

commit984a82a9b81ef07bd29bb14701503a8a33ff2c81 authorJohn MacFarlane <jgm@berkeley.edu> dateWed 19 Feb 2020, 16:56 (7 years ago) parent9feefa3
1 file changed+2−1
src/Text/Pandoc/App.hs+2−1
src/Text/Pandoc/App.hs+2−1
@@ -125,6 +125,8 @@ convertWithOpts opts = do
125125
126126 runIO' $ do
127127 setUserDataDir datadir
128+ setResourcePath (optResourcePath opts)
129+
128130 setInputFiles (fromMaybe ["-"] (optInputFiles opts))
129131 setOutputFile (optOutputFile opts)
130132
@@ -268,7 +270,6 @@ convertWithOpts opts = do
268270 writerName == "markdown_github") $
269271 report $ Deprecated "markdown_github" "Use gfm instead."
270272
271− setResourcePath (optResourcePath opts)
272273 mapM_ (uncurry setRequestHeader) (optRequestHeaders opts)
273274
274275 doc <- sourceToDoc sources >>=