From ba911cce33ee6da9a7fbc6bcf597ed2e1f1959a2 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Sun, 26 Mar 2023 23:27:26 +0200 Subject: Typst: fix output for syntax-highlighted inline code. --- src/Text/Pandoc/Writers/Typst.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Text/Pandoc/Writers/Typst.hs b/src/Text/Pandoc/Writers/Typst.hs index 2663a4a37..d7d167d97 100644 --- a/src/Text/Pandoc/Writers/Typst.hs +++ b/src/Text/Pandoc/Writers/Typst.hs @@ -232,7 +232,7 @@ inlineToTypst inline = DisplayMath -> return $ "$ " <> literal r <> " $" Code (_,cls,_) code -> return $ case cls of - (lang:_) -> "#raw(lang=" <> doubleQuoted lang <> + (lang:_) -> "#raw(lang:" <> doubleQuoted lang <> ", " <> doubleQuoted code <> ")" _ | T.any (=='`') code -> "#raw(" <> doubleQuoted code <> ")" | otherwise -> "`" <> literal code <> "`" -- cgit v1.2.3