aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-09-12 16:46:33 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-09-12 16:46:33 +0200
commitf7d7507af61a0f253fdb50cecd20885b72d16b13 (patch)
tree60be046efcb89811305f2f8bc3dffc502dacb2a9 /src/construct
parent2011d2ea4d6ec9d1bd7409c22e4258aceaaa3afe (diff)
downloadmarkdown-rs-f7d7507af61a0f253fdb50cecd20885b72d16b13.tar.gz
markdown-rs-f7d7507af61a0f253fdb50cecd20885b72d16b13.tar.bz2
markdown-rs-f7d7507af61a0f253fdb50cecd20885b72d16b13.zip
Fix blank lines in labels
Diffstat (limited to 'src/construct')
-rw-r--r--src/construct/partial_label.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/construct/partial_label.rs b/src/construct/partial_label.rs
index 255fde1..f56a591 100644
--- a/src/construct/partial_label.rs
+++ b/src/construct/partial_label.rs
@@ -197,8 +197,9 @@ pub fn eol_after(tokenizer: &mut Tokenizer) -> State {
/// | b]
/// ```
pub fn at_blank_line(tokenizer: &mut Tokenizer) -> State {
- tokenizer.tokenize_state.marker = 0;
tokenizer.tokenize_state.connect = false;
+ tokenizer.tokenize_state.seen = false;
+ tokenizer.tokenize_state.size = 0;
State::Nok
}