mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-21 23:15:52 +00:00
Fix roff ms syntax highlighting definitions.
Begin each string definition with `\&`. Closes #8175. Thanks to Branden Robinson.
This commit is contained in:
@@ -578,7 +578,7 @@ hexColor (RGB r g b) = T.pack $ printf "%02x%02x%02x" r g b
|
||||
|
||||
toMacro :: Style -> TokenType -> Doc Text
|
||||
toMacro sty toktype =
|
||||
nowrap (literal ".ds " <> literal (tshow toktype) <> literal " " <>
|
||||
nowrap (literal ".ds " <> literal (tshow toktype) <> literal " \\&" <>
|
||||
setbg <> setcolor <> setfont <>
|
||||
literal "\\\\$1" <>
|
||||
resetfont <> resetcolor <> resetbg)
|
||||
|
||||
Reference in New Issue
Block a user