diff options
| author | Albert Krewinkel <[email protected]> | 2023-03-26 23:27:26 +0200 |
|---|---|---|
| committer | Albert Krewinkel <[email protected]> | 2023-03-27 11:00:10 +0200 |
| commit | ba911cce33ee6da9a7fbc6bcf597ed2e1f1959a2 (patch) | |
| tree | 7a53feab33b86467920eeeaede9803d7b6dc0288 /src | |
| parent | a160d3733836c7ab08a58cfb9be35dad8f663f6e (diff) | |
Typst: fix output for syntax-highlighted inline code.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Text/Pandoc/Writers/Typst.hs | 2 |
1 files changed, 1 insertions, 1 deletions
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 <> "`" |
