diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-10-29 12:25:32 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-10-29 12:25:32 +0200 |
commit | 7bf7e86db9db89da11f80d2199bcd5ca7988efba (patch) | |
tree | 24e13a4ed3bb7178907676cbbf2dbd2756c4f047 /src/construct/heading_setext.rs | |
parent | 5d5e94567e7a87a3cefdda410e3bd9e36e26eca5 (diff) | |
download | markdown-rs-7bf7e86db9db89da11f80d2199bcd5ca7988efba.tar.gz markdown-rs-7bf7e86db9db89da11f80d2199bcd5ca7988efba.tar.bz2 markdown-rs-7bf7e86db9db89da11f80d2199bcd5ca7988efba.zip |
Refactor to always resolve edit maps
This will probably catch some confusing bugs, such as ad1b3e6.
Diffstat (limited to '')
-rw-r--r-- | src/construct/heading_setext.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/construct/heading_setext.rs b/src/construct/heading_setext.rs index 73b89c6..6e0ec08 100644 --- a/src/construct/heading_setext.rs +++ b/src/construct/heading_setext.rs @@ -185,8 +185,6 @@ pub fn after(tokenizer: &mut Tokenizer) -> State { /// Resolve heading (setext). pub fn resolve(tokenizer: &mut Tokenizer) -> Option<Subresult> { - tokenizer.map.consume(&mut tokenizer.events); - let mut enter = skip::to(&tokenizer.events, 0, &[Name::HeadingSetextUnderline]); while enter < tokenizer.events.len() { @@ -280,6 +278,5 @@ pub fn resolve(tokenizer: &mut Tokenizer) -> Option<Subresult> { } tokenizer.map.consume(&mut tokenizer.events); - None } |