mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-24 15:44:59 +08:00
Fix typst reader for new typst-hs version.
This commit is contained in:
@@ -59,7 +59,7 @@ readTypst _opts inp = do
|
||||
case parseTypst inputName (sourcesToText sources) of
|
||||
Left e -> throwError $ PandocParseError $ T.pack $ show e
|
||||
Right parsed ->
|
||||
evaluateTypst readFileStrict inputName parsed >>=
|
||||
evaluateTypst readFileStrict getCurrentTime inputName parsed >>=
|
||||
either (throwError . PandocParseError . T.pack . show) pure >>=
|
||||
runParserT pPandoc () inputName . F.toList >>=
|
||||
either (throwError . PandocParseError . T.pack . show) pure
|
||||
|
||||
Reference in New Issue
Block a user