aboutsummaryrefslogtreecommitdiffstats
path: root/src/content/document.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-11 14:53:45 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-11 15:04:32 +0200
commitb7bd2b734fae09c40d738fcd57d5ee6876f0f504 (patch)
treeea3b7dc9b6e668823323187dbe2f2030d6965905 /src/content/document.rs
parent8e78fc8f209d20e8f9a76321fcbebf77fa4c57fc (diff)
downloadmarkdown-rs-b7bd2b734fae09c40d738fcd57d5ee6876f0f504.tar.gz
markdown-rs-b7bd2b734fae09c40d738fcd57d5ee6876f0f504.tar.bz2
markdown-rs-b7bd2b734fae09c40d738fcd57d5ee6876f0f504.zip
Fix block quote bugs
Diffstat (limited to '')
-rw-r--r--src/content/document.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/content/document.rs b/src/content/document.rs
index 0112d52..f093a04 100644
--- a/src/content/document.rs
+++ b/src/content/document.rs
@@ -158,6 +158,7 @@ fn document_continue(
let size = info.continued;
info = exit_containers(tokenizer, info, size, true);
+ tokenizer.expect(code, true);
// // Fix positions.
// let index = indexBeforeExits
@@ -241,6 +242,7 @@ fn there_is_a_new_container(
println!("there_is_a_new_container");
let size = info.continued;
info = exit_containers(tokenizer, info, size, true);
+ tokenizer.expect(code, true);
// Remove from the event stack.
// We’ll properly add exits at different points manually.
@@ -251,7 +253,7 @@ fn there_is_a_new_container(
unreachable!("todo: cont {:?}", name)
};
- println!("creating exit for `{:?}`", name);
+ println!("creating exit (a) for `{:?}`", name);
let token_types = end();
@@ -329,7 +331,7 @@ fn exit_containers(
unreachable!("todo: cont {:?}", name)
};
- println!("creating exit for `{:?}`", name);
+ println!("creating exit (b) for `{:?}`", name);
let token_types = end();
@@ -429,6 +431,7 @@ fn flow_start(tokenizer: &mut Tokenizer, code: Code, mut info: DocumentInfo) ->
// Exit containers.
let size = info.continued;
info = exit_containers(tokenizer, info, size, true);
+ tokenizer.expect(code, true);
// Define start.
let point = tokenizer.point.clone();
@@ -469,6 +472,7 @@ fn flow_end(
State::Ok => {
println!("State::Ok");
info = exit_containers(tokenizer, info, 0, false);
+ tokenizer.expect(code, true);
// println!("document:inject: {:?}", info.inject);
let mut map = EditMap::new();