aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-22 16:16:59 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-22 16:16:59 +0200
commit8774b207b7251730eaa7fbfe4f144122a472dda0 (patch)
treece1b8f92a08ff70da265ae8e4484dba2335280a9 /src/lib.rs
parent351c69644bdbdf52c95e322904273657892920b5 (diff)
downloadmarkdown-rs-8774b207b7251730eaa7fbfe4f144122a472dda0.tar.gz
markdown-rs-8774b207b7251730eaa7fbfe4f144122a472dda0.tar.bz2
markdown-rs-8774b207b7251730eaa7fbfe4f144122a472dda0.zip
Add support for GFM task list item
Diffstat (limited to '')
-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()
}
}