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/state.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/state.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs index da935d1..65ffbeb 100644 --- a/src/state.rs +++ b/src/state.rs @@ -145,6 +145,12 @@ pub enum Name { FrontmatterCloseSequence, FrontmatterCloseAfter, + GfmTaskListItemCheckStart, + GfmTaskListItemCheckInside, + GfmTaskListItemCheckClose, + GfmTaskListItemCheckAfter, + GfmTaskListItemCheckAfterSpaceOrTab, + HardBreakEscapeStart, HardBreakEscapeAfter, @@ -444,6 +450,14 @@ pub fn call(tokenizer: &mut Tokenizer, name: Name) -> State { Name::FrontmatterCloseSequence => construct::frontmatter::close_sequence, Name::FrontmatterCloseAfter => construct::frontmatter::close_after, + Name::GfmTaskListItemCheckStart => construct::gfm_task_list_item_check::start, + Name::GfmTaskListItemCheckInside => construct::gfm_task_list_item_check::inside, + Name::GfmTaskListItemCheckClose => construct::gfm_task_list_item_check::close, + Name::GfmTaskListItemCheckAfter => construct::gfm_task_list_item_check::after, + Name::GfmTaskListItemCheckAfterSpaceOrTab => { + construct::gfm_task_list_item_check::after_space_or_tab + } + Name::HardBreakEscapeStart => construct::hard_break_escape::start, Name::HardBreakEscapeAfter => construct::hard_break_escape::after, |