aboutsummaryrefslogtreecommitdiffstats
path: root/tests/character_escape.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-16 11:34:35 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-06-16 11:34:35 +0200
commit58ba69452a25c3d4b2059c01cc6cd837159d2f90 (patch)
tree7f6d49449f564ec8606cc3881210d8b27df11961 /tests/character_escape.rs
parent7875ada79cea1194dc9e15acee36ed0700be70e6 (diff)
downloadmarkdown-rs-58ba69452a25c3d4b2059c01cc6cd837159d2f90.tar.gz
markdown-rs-58ba69452a25c3d4b2059c01cc6cd837159d2f90.tar.bz2
markdown-rs-58ba69452a25c3d4b2059c01cc6cd837159d2f90.zip
Add support for hard break escape
Diffstat (limited to 'tests/character_escape.rs')
-rw-r--r--tests/character_escape.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/character_escape.rs b/tests/character_escape.rs
index aae0b58..c81760d 100644
--- a/tests/character_escape.rs
+++ b/tests/character_escape.rs
@@ -30,12 +30,11 @@ fn character_escape() {
"should escape other constructs"
);
- // To do: hard break.
- // assert_eq!(
- // micromark("foo\\\nbar"),
- // "<p>foo<br />\nbar</p>",
- // "should escape a line break"
- // );
+ assert_eq!(
+ micromark("foo\\\nbar"),
+ "<p>foo<br />\nbar</p>",
+ "should escape a line break"
+ );
assert_eq!(
micromark("`` \\[\\` ``"),