From 8774b207b7251730eaa7fbfe4f144122a472dda0 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 22 Aug 2022 16:16:59 +0200 Subject: Add support for GFM task list item --- src/state.rs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/state.rs') 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, -- cgit