aboutsummaryrefslogtreecommitdiffstats
path: root/tests/gfm_task_list_item.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-06 15:57:55 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-10-06 15:57:55 +0200
commitcd5bb2d16c6b28332b0b6077b27b2b90a8051896 (patch)
tree848ebc6200b80d2dfdcd67bf0bb245eea06bb24f /tests/gfm_task_list_item.rs
parent6e80e03bb6d6af47aba2b339f160e4895ab5afba (diff)
downloadmarkdown-rs-cd5bb2d16c6b28332b0b6077b27b2b90a8051896.tar.gz
markdown-rs-cd5bb2d16c6b28332b0b6077b27b2b90a8051896.tar.bz2
markdown-rs-cd5bb2d16c6b28332b0b6077b27b2b90a8051896.zip
Refactor to split parse from compile options
Diffstat (limited to 'tests/gfm_task_list_item.rs')
-rw-r--r--tests/gfm_task_list_item.rs9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/gfm_task_list_item.rs b/tests/gfm_task_list_item.rs
index 1a0b682..8bc0d31 100644
--- a/tests/gfm_task_list_item.rs
+++ b/tests/gfm_task_list_item.rs
@@ -3,14 +3,17 @@ use micromark::{
mdast::{List, ListItem, Node, Paragraph, Root, Text},
micromark, micromark_to_mdast, micromark_with_options,
unist::Position,
- Constructs, Options,
+ Constructs, Options, ParseOptions,
};
use pretty_assertions::assert_eq;
#[test]
fn gfm_task_list_item() -> Result<(), String> {
let gfm = Options {
- constructs: Constructs::gfm(),
+ parse: ParseOptions {
+ constructs: Constructs::gfm(),
+ ..ParseOptions::default()
+ },
..Options::default()
};
@@ -246,7 +249,7 @@ Text.</li>
);
assert_eq!(
- micromark_to_mdast("* [x] a\n* [ ] b\n* c", &gfm)?,
+ micromark_to_mdast("* [x] a\n* [ ] b\n* c", &gfm.parse)?,
Node::Root(Root {
children: vec![Node::List(List {
ordered: false,