aboutsummaryrefslogtreecommitdiffstats
path: root/tests/hard_break_trailing.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hard_break_trailing.rs')
-rw-r--r--tests/hard_break_trailing.rs22
1 files changed, 15 insertions, 7 deletions
diff --git a/tests/hard_break_trailing.rs b/tests/hard_break_trailing.rs
index d67ad37..2013c46 100644
--- a/tests/hard_break_trailing.rs
+++ b/tests/hard_break_trailing.rs
@@ -1,5 +1,5 @@
extern crate micromark;
-use micromark::micromark;
+use micromark::{micromark, micromark_with_options, Constructs, Options};
#[test]
fn hard_break_trailing() {
@@ -111,10 +111,18 @@ fn hard_break_trailing() {
"should support a mixed line suffix after a span (3)"
);
- // // To do: turning things off.
- // assert_eq!(
- // micromark("a \nb", {extensions: [{disable: {null: ["hardBreakTrailing"]}}]}),
- // "<p>a\nb</p>",
- // "should support turning off hard break (trailing)"
- // );
+ assert_eq!(
+ micromark_with_options(
+ "a \nb",
+ &Options {
+ constructs: Constructs {
+ hard_break_trailing: false,
+ ..Constructs::default()
+ },
+ ..Options::default()
+ }
+ ),
+ "<p>a\nb</p>",
+ "should support turning off hard break (trailing)"
+ );
}