aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-05-12 13:50:32 -0700
committerJohn MacFarlane <[email protected]>2025-05-12 13:50:32 -0700
commitf239a45b3ede63ccb12d4559bdfebdfce7f6ac1d (patch)
treee089b2de22b73b3dda4d70284c48bbba3b0a2b5c /src
parentd3d5366e5197330e035f9f1700929c9b5a24d532 (diff)
Use latest texmath and dev typst.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/Typst.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Typst.hs b/src/Text/Pandoc/Readers/Typst.hs
index 6b2f989bc..948455f09 100644
--- a/src/Text/Pandoc/Readers/Typst.hs
+++ b/src/Text/Pandoc/Readers/Typst.hs
@@ -466,7 +466,7 @@ inlineHandlers = M.fromList
(B.fromList . blocksToInlines . B.toList <$> pBlocks) body
pure $ B.link src "" description)
,("image", \_ fields -> do
- path <- getField "path" fields
+ path <- getField "source" fields <|> getField "path" fields
alt <- (B.text <$> getField "alt" fields) `mplus` pure mempty
(mbwidth :: Maybe Text) <-
fmap (renderLength False) <$> getField "width" fields