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/event.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 'src/event.rs')
-rw-r--r-- | src/event.rs | 79 |
1 files changed, 78 insertions, 1 deletions
diff --git a/src/event.rs b/src/event.rs index 3c690e1..f20c599 100644 --- a/src/event.rs +++ b/src/event.rs @@ -1074,6 +1074,80 @@ pub enum Name { /// ^ /// ``` GfmStrikethroughText, + /// GFM: Task list item check. + /// + /// ## Info + /// + /// * **Context**: + /// [text content][crate::construct::text] + /// * **Content model**: + /// [`GfmTaskListItemMarker`][Name::GfmTaskListItemMarker], + /// [`GfmTaskListItemValueChecked`][Name::GfmTaskListItemValueChecked], + /// [`GfmTaskListItemValueUnchecked`][Name::GfmTaskListItemValueUnchecked] + /// * **Construct**: + /// [`gfm_task_list_item_check`][crate::construct::gfm_task_list_item_check] + /// + /// ## Example + /// + /// ```markdown + /// > | * [x] y. + /// ^^^ + /// ``` + GfmTaskListItemCheck, + /// GFM: Task list item check marker. + /// + /// ## Info + /// + /// * **Context**: + /// [`GfmTaskListItemCheck`][Name::GfmTaskListItemCheck] + /// * **Content model**: + /// void + /// * **Construct**: + /// [`gfm_task_list_item_check`][crate::construct::gfm_task_list_item_check] + /// + /// ## Example + /// + /// ```markdown + /// > | * [x] y. + /// ^ ^ + /// ``` + GfmTaskListItemMarker, + /// GFM: Task list item value: checked. + /// + /// ## Info + /// + /// * **Context**: + /// [`GfmTaskListItemCheck`][Name::GfmTaskListItemCheck] + /// * **Content model**: + /// void + /// * **Construct**: + /// [`gfm_task_list_item_check`][crate::construct::gfm_task_list_item_check] + /// + /// ## Example + /// + /// ```markdown + /// > | * [x] y. + /// ^ + /// ``` + GfmTaskListItemValueChecked, + /// GFM: Task list item value: unchecked. + /// + /// ## Info + /// + /// * **Context**: + /// [`GfmTaskListItemCheck`][Name::GfmTaskListItemCheck] + /// * **Content model**: + /// void + /// * **Construct**: + /// [`gfm_task_list_item_check`][crate::construct::gfm_task_list_item_check] + /// + /// ## Example + /// + /// ```markdown + /// > | * [ ] z. + /// ^ + /// ``` + GfmTaskListItemValueUnchecked, /// Whole hard break (escape). /// /// ## Info @@ -2031,7 +2105,7 @@ pub enum Name { } /// List of void events, used to make sure everything is working well. -pub const VOID_EVENTS: [Name; 47] = [ +pub const VOID_EVENTS: [Name; 50] = [ Name::AttentionSequence, Name::AutolinkEmail, Name::AutolinkMarker, @@ -2061,6 +2135,9 @@ pub const VOID_EVENTS: [Name; 47] = [ Name::GfmAutolinkLiteralProtocol, Name::GfmAutolinkLiteralWww, Name::GfmStrikethroughSequence, + Name::GfmTaskListItemMarker, + Name::GfmTaskListItemValueChecked, + Name::GfmTaskListItemValueUnchecked, Name::FrontmatterSequence, Name::HardBreakEscape, Name::HardBreakTrailing, |