diff options
Diffstat (limited to '')
-rw-r--r-- | src/construct/paragraph.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/construct/paragraph.rs b/src/construct/paragraph.rs index a2eb6ff..e43ee43 100644 --- a/src/construct/paragraph.rs +++ b/src/construct/paragraph.rs @@ -69,11 +69,11 @@ fn inside(tokenizer: &mut Tokenizer, code: Code) -> StateFnResult { tokenizer.register_resolver_before("paragraph".to_string(), Box::new(resolve)); // You’d be interrupting. tokenizer.interrupt = true; - (State::Ok, Some(vec![code])) + (State::Ok, if matches!(code, Code::None) { 0 } else { 1 }) } _ => { tokenizer.consume(code); - (State::Fn(Box::new(inside)), None) + (State::Fn(Box::new(inside)), 0) } } } |