aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 893255a..5b7836c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -178,6 +178,13 @@ pub struct Constructs {
/// ^^^
/// ```
pub gfm_strikethrough: bool,
+ /// GFM: task list item.
+ ///
+ /// ```markdown
+ /// > | * [x] y.
+ /// ^^^
+ /// ```
+ pub gfm_task_list_item: bool,
/// Hard break (escape).
///
/// ```markdown
@@ -277,6 +284,7 @@ impl Default for Constructs {
frontmatter: false,
gfm_autolink_literal: false,
gfm_strikethrough: false,
+ gfm_task_list_item: false,
hard_break_escape: true,
hard_break_trailing: true,
heading_atx: true,
@@ -301,6 +309,7 @@ impl Constructs {
Self {
gfm_autolink_literal: true,
gfm_strikethrough: true,
+ gfm_task_list_item: true,
..Self::default()
}
}