mirror of
https://github.com/jgm/pandoc.git
synced 2026-09-22 07:25:36 +00:00
Fixed tests for escapes in links.
This commit is contained in:
@@ -47,16 +47,16 @@ tests = [ testGroup "inline code"
|
||||
, testGroup "backslash escapes"
|
||||
[ "in URL" =:
|
||||
"[hi](/there\\))"
|
||||
=?> para (link "hi" "/there)" "")
|
||||
=?> para (link "/there)" "" "hi")
|
||||
, "in title" =:
|
||||
"[hi](/there \"a\\\"a)"
|
||||
=?> para (link "hi" "/there" "a\"a")
|
||||
=?> para (link "/there" "a\"a" "hi")
|
||||
, "in reference link title" =:
|
||||
"[hi]\n\n[hi]: /there (a\\)a)"
|
||||
=?> para (link "hi" "/there" "a)a")
|
||||
=?> para (link "/there" "a)a" "hi")
|
||||
, "in reference link URL" =:
|
||||
"[hi]\n\n[hi]: /there\\."
|
||||
=?> para (link "hi" "/there." "")
|
||||
=?> para (link "/there." "" "hi")
|
||||
]
|
||||
, testGroup "smart punctuation"
|
||||
[ test markdownSmart "quote before ellipses"
|
||||
|
||||
Reference in New Issue
Block a user