diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-08-22 17:32:40 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-08-22 17:32:40 +0200 |
commit | 49b6a4e72516e8b2a8768e761a60a4f461802d69 (patch) | |
tree | 1baeb4eba94d9d49ccfd8bd15d0fb3fefd45a993 /src/tokenizer.rs | |
parent | 8774b207b7251730eaa7fbfe4f144122a472dda0 (diff) | |
download | markdown-rs-49b6a4e72516e8b2a8768e761a60a4f461802d69.tar.gz markdown-rs-49b6a4e72516e8b2a8768e761a60a4f461802d69.tar.bz2 markdown-rs-49b6a4e72516e8b2a8768e761a60a4f461802d69.zip |
Fix lazy paragraph after definition
Diffstat (limited to 'src/tokenizer.rs')
-rw-r--r-- | src/tokenizer.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tokenizer.rs b/src/tokenizer.rs index 731b829..83514cb 100644 --- a/src/tokenizer.rs +++ b/src/tokenizer.rs @@ -142,8 +142,8 @@ pub struct TokenizeState<'a> { pub document_data_index: Option<usize>, /// Container exits by line number. pub document_exits: Vec<Option<Vec<Event>>>, - /// Whether the previous flow was a paragraph. - pub document_paragraph_before: bool, + /// Whether the previous flow was a paragraph or a definition. + pub document_lazy_accepting_before: bool, /// Whether this is the first paragraph (potentially after definitions) in /// a list item. /// Used for GFM task list items. @@ -282,7 +282,7 @@ impl<'a> Tokenizer<'a> { document_container_stack: vec![], document_exits: vec![], document_continued: 0, - document_paragraph_before: false, + document_lazy_accepting_before: false, document_data_index: None, document_child_state: None, document_child: None, |