mirror of
https://github.com/jgm/pandoc.git
synced 2026-08-25 09:47:06 +00:00
Typst: fix output for syntax-highlighted inline code.
This commit is contained in:
@@ -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 <> "`"
|
||||
|
||||
Reference in New Issue
Block a user