aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct/label_end.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-05 14:50:18 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-05 14:50:18 +0200
commit195e25958cfaa42d91b36f3fc51e8315586c6378 (patch)
tree4b59f9e6cd05f17d8c6dcc5a84884ff8ce3b01f7 /src/construct/label_end.rs
parent55a6f8560cf88b655f49f1a1a59f6c1dc6afe022 (diff)
downloadmarkdown-rs-195e25958cfaa42d91b36f3fc51e8315586c6378.tar.gz
markdown-rs-195e25958cfaa42d91b36f3fc51e8315586c6378.tar.bz2
markdown-rs-195e25958cfaa42d91b36f3fc51e8315586c6378.zip
Fix bug when removing loose label ends
Diffstat (limited to 'src/construct/label_end.rs')
-rw-r--r--src/construct/label_end.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/construct/label_end.rs b/src/construct/label_end.rs
index 24ac3a5..3a40cc2 100644
--- a/src/construct/label_end.rs
+++ b/src/construct/label_end.rs
@@ -194,7 +194,7 @@ pub fn resolve_media(tokenizer: &mut Tokenizer) -> Vec<Event> {
edit_map.add(
data_enter_index,
- data_exit_index - data_enter_index,
+ data_exit_index - data_enter_index + 1,
vec![
Event {
event_type: EventType::Enter,