aboutsummaryrefslogtreecommitdiffstats
path: root/src/tokenizer.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-22 17:32:40 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-08-22 17:32:40 +0200
commit49b6a4e72516e8b2a8768e761a60a4f461802d69 (patch)
tree1baeb4eba94d9d49ccfd8bd15d0fb3fefd45a993 /src/tokenizer.rs
parent8774b207b7251730eaa7fbfe4f144122a472dda0 (diff)
downloadmarkdown-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.rs6
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,