mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-17 17:39:54 +08:00
RST writer: fix backslash escaping after strings
The check whether a complex inline element following a string must be escaped, now depends on the last character of the string instead of the first. Fixes: #5906
This commit is contained in:
@@ -105,6 +105,9 @@ tests = [ testGroup "rubrics"
|
||||
, "keeps quotes" =:
|
||||
strong (str "f" <> doubleQuoted (str "d") <> str "l") =?>
|
||||
"**f“d”l**"
|
||||
, "backslash inserted between str and code" =:
|
||||
str "/api?query=" <> code "foo" =?>
|
||||
"/api?query=\\ ``foo``"
|
||||
]
|
||||
, testGroup "headings"
|
||||
[ "normal heading" =:
|
||||
|
||||
Reference in New Issue
Block a user