summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2023-12-10 11:22:08 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2023-12-10 11:22:08 -0800
commit8c90b46d8b5a9dfbbff4da8c2999c1b4b5ca4b51 (patch)
tree619e63fac552ff3f90b6e10e707853d2e30f35d9 /src
parent74b4e10125c0af582f7d8ad258bfe7daaf7f0227 (diff)
Typst reader: support sys.version.
Diffstat (limited to 'src')
-rw-r--r--src/Text/Pandoc/Readers/Typst.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Text/Pandoc/Readers/Typst.hs b/src/Text/Pandoc/Readers/Typst.hs
index b450cc3ed..5e20fe9c6 100644
--- a/src/Text/Pandoc/Readers/Typst.hs
+++ b/src/Text/Pandoc/Readers/Typst.hs
@@ -521,6 +521,7 @@ inlineHandlers = M.fromList
alignment <- getField "alignment" fields
B.spanWith ("", [], [("align", repr alignment)])
<$> (getField "body" fields >>= pWithContents pInlines))
+ ,("sys.version", \_ fields -> pure $ B.text "typst-hs")
,("math.equation", \_ fields -> do
body <- getField "body" fields
display <- getField "block" fields