Typst: fix output for syntax-highlighted inline code.

This commit is contained in:
Albert Krewinkel
2023-03-27 11:00:10 +02:00
parent a160d37338
commit ba911cce33
+1 -1
View File
@@ -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 <> "`"