aboutsummaryrefslogtreecommitdiffstats
path: root/src/tokenizer.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-09 17:32:01 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-09 17:32:01 +0200
commit9bab2951cd3e9d492f3aa9f127531643323a1de1 (patch)
tree012036d88b010dbfe940c77b8735a9a0686e5fd0 /src/tokenizer.rs
parent8f8d72a749a39845fd03ae259533abe73dc7dcdf (diff)
downloadmarkdown-rs-9bab2951cd3e9d492f3aa9f127531643323a1de1.tar.gz
markdown-rs-9bab2951cd3e9d492f3aa9f127531643323a1de1.tar.bz2
markdown-rs-9bab2951cd3e9d492f3aa9f127531643323a1de1.zip
Add peeking to unindented flow lines
Diffstat (limited to 'src/tokenizer.rs')
-rw-r--r--src/tokenizer.rs6
1 files changed, 2 insertions, 4 deletions
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,