aboutsummaryrefslogtreecommitdiffstats
path: root/tests/code_fenced.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/code_fenced.rs')
-rw-r--r--tests/code_fenced.rs22
1 files changed, 15 insertions, 7 deletions
diff --git a/tests/code_fenced.rs b/tests/code_fenced.rs
index fa9ed5f..f251952 100644
--- a/tests/code_fenced.rs
+++ b/tests/code_fenced.rs
@@ -1,5 +1,5 @@
extern crate micromark;
-use micromark::micromark;
+use micromark::{micromark, micromark_with_options, Constructs, Options};
#[test]
fn code_fenced() {
@@ -250,10 +250,18 @@ fn code_fenced() {
"should not support lazyness (3)"
);
- // To do: turning things off.
- // assert_eq!(
- // micromark("```", {extensions: [{disable: {null: ["codeFenced"]}}]}),
- // "<p>```</p>",
- // "should support turning off code (fenced)"
- // );
+ assert_eq!(
+ micromark_with_options(
+ "```",
+ &Options {
+ constructs: Constructs {
+ code_fenced: false,
+ ..Constructs::default()
+ },
+ ..Options::default()
+ }
+ ),
+ "<p>```</p>",
+ "should support turning off code (fenced)"
+ );
}