Set user data dir at beginning, so readDataFile has access to it.
This commit is contained in:
parent
467ca2a1ad
commit
b6e0add76a
1 changed files with 2 additions and 1 deletions
|
@ -298,6 +298,8 @@ convertWithOpts opts = do
|
||||||
return $ (varname, s) : vars
|
return $ (varname, s) : vars
|
||||||
|
|
||||||
runIO' $ do
|
runIO' $ do
|
||||||
|
setUserDataDir datadir
|
||||||
|
|
||||||
variables <-
|
variables <-
|
||||||
withList (addStringAsVariable "sourcefile")
|
withList (addStringAsVariable "sourcefile")
|
||||||
(reverse $ optInputFiles opts)
|
(reverse $ optInputFiles opts)
|
||||||
|
@ -451,7 +453,6 @@ convertWithOpts opts = do
|
||||||
mconcat <$> mapM (readFile' >=> r readerOpts) sources
|
mconcat <$> mapM (readFile' >=> r readerOpts) sources
|
||||||
|
|
||||||
|
|
||||||
setUserDataDir datadir
|
|
||||||
when (readerName == "markdown_github" ||
|
when (readerName == "markdown_github" ||
|
||||||
writerName == "markdown_github") $
|
writerName == "markdown_github") $
|
||||||
report $ Deprecated "markdown_github" "Use gfm instead."
|
report $ Deprecated "markdown_github" "Use gfm instead."
|
||||||
|
|
Loading…
Add table
Reference in a new issue