From 58ba69452a25c3d4b2059c01cc6cd837159d2f90 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 16 Jun 2022 11:34:35 +0200 Subject: Add support for hard break escape --- tests/character_escape.rs | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'tests/character_escape.rs') 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"), - // "

foo
\nbar

", - // "should escape a line break" - // ); + assert_eq!( + micromark("foo\\\nbar"), + "

foo
\nbar

", + "should escape a line break" + ); assert_eq!( micromark("`` \\[\\` ``"), -- cgit