diff options
-rw-r--r-- | src/Text/Pandoc/App.hs | 3 |
1 files changed, 2 insertions, 1 deletions
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 >>= |