From 9bab2951cd3e9d492f3aa9f127531643323a1de1 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 9 Aug 2022 17:32:01 +0200 Subject: Add peeking to unindented flow lines --- src/tokenizer.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/tokenizer.rs') diff --git a/src/tokenizer.rs b/src/tokenizer.rs index 1d02d5a..034c6f9 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -214,7 +214,7 @@ pub enum StateName { DocumentFlowEnd, FlowStart, - FlowBefore, + FlowBeforeCodeIndented, FlowBeforeCodeFenced, FlowBeforeHtml, FlowBeforeHeadingAtx, @@ -508,15 +508,13 @@ impl StateName { StateName::DocumentFlowInside => content::document::flow_inside, StateName::FlowStart => content::flow::start, - StateName::FlowBefore => content::flow::before, - + StateName::FlowBeforeCodeIndented => content::flow::before_code_indented, StateName::FlowBeforeCodeFenced => content::flow::before_code_fenced, StateName::FlowBeforeHtml => content::flow::before_html, StateName::FlowBeforeHeadingAtx => content::flow::before_heading_atx, StateName::FlowBeforeHeadingSetext => content::flow::before_heading_setext, StateName::FlowBeforeThematicBreak => content::flow::before_thematic_break, StateName::FlowBeforeDefinition => content::flow::before_definition, - StateName::FlowAfter => content::flow::after, StateName::FlowBlankLineAfter => content::flow::blank_line_after, StateName::FlowBeforeParagraph => content::flow::before_paragraph, -- cgit