diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-08-22 16:16:59 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-08-22 16:16:59 +0200 |
commit | 8774b207b7251730eaa7fbfe4f144122a472dda0 (patch) | |
tree | ce1b8f92a08ff70da265ae8e4484dba2335280a9 /src/lib.rs | |
parent | 351c69644bdbdf52c95e322904273657892920b5 (diff) | |
download | markdown-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.rs | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -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() } } |