aboutsummaryrefslogtreecommitdiff
path: root/src/Text/Pandoc
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-03-17 09:10:44 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2021-03-17 09:10:44 -0700
commit7bf4be04b0c04ccfd02a2a907071b8747380904f (patch)
tree25ed2d4317c186e0825d421213557080e0c76e46 /src/Text/Pandoc
parente66bf891ec21cc09611c5be4e4847fccd39e0084 (diff)
downloadpandoc-7bf4be04b0c04ccfd02a2a907071b8747380904f.tar.gz
Fix regression with `tex_math_backslash` in Markdown reader.
Added regression test. Closes #7155.
Diffstat (limited to 'src/Text/Pandoc')
-rw-r--r--src/Text/Pandoc/Readers/Markdown.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Text/Pandoc/Readers/Markdown.hs b/src/Text/Pandoc/Readers/Markdown.hs
index dc94fc2d6..c836a896b 100644
--- a/src/Text/Pandoc/Readers/Markdown.hs
+++ b/src/Text/Pandoc/Readers/Markdown.hs
@@ -1503,7 +1503,7 @@ inline = do
'$' -> math
'~' -> strikeout <|> subscript
'<' -> autoLink <|> spanHtml <|> rawHtmlInline <|> ltSign
- '\\' -> escapedNewline <|> escapedChar <|> rawLaTeXInline'
+ '\\' -> math <|> escapedNewline <|> escapedChar <|> rawLaTeXInline'
'@' -> cite <|> exampleRef
'"' -> smart
'\'' -> smart