aboutsummaryrefslogtreecommitdiffstats
path: root/src/subtokenize.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-15 11:48:20 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-15 11:48:23 +0200
commitc51784f08024e9dc3dc940a2a6b0db171f56aaa7 (patch)
tree1ea2029dd90ee59584d7db780c5b2fa29cc58e88 /src/subtokenize.rs
parenta7a4d19fe3bc9e5e0c3218d9af41d9cee80e9374 (diff)
downloadmarkdown-rs-c51784f08024e9dc3dc940a2a6b0db171f56aaa7.tar.gz
markdown-rs-c51784f08024e9dc3dc940a2a6b0db171f56aaa7.tar.bz2
markdown-rs-c51784f08024e9dc3dc940a2a6b0db171f56aaa7.zip
Fix annoying bug around virtual spaces in containers
Diffstat (limited to 'src/subtokenize.rs')
-rw-r--r--src/subtokenize.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/subtokenize.rs b/src/subtokenize.rs
index dd0351d..ad9a745 100644
--- a/src/subtokenize.rs
+++ b/src/subtokenize.rs
@@ -113,7 +113,7 @@ pub fn subtokenize(mut events: Vec<Event>, parse_state: &ParseState) -> (Vec<Eve
ends.push(span.end_index);
if enter.previous != None {
- tokenizer.define_skip(&enter.point);
+ tokenizer.define_skip(enter.point.clone(), enter.index);
}
let func: Box<StateFn> = match result.0 {