diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-07-21 15:44:49 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-07-21 15:44:49 +0200 |
commit | c43ad9bfb9467627df1b40266ac7b0d570a55a62 (patch) | |
tree | 27d7b01048a2e161f055388cecaa6bf84e1c01a4 /src/construct/list.rs | |
parent | 2d0dfe66d423e707b7de60d9bde0cec7933580fe (diff) | |
download | markdown-rs-c43ad9bfb9467627df1b40266ac7b0d570a55a62.tar.gz markdown-rs-c43ad9bfb9467627df1b40266ac7b0d570a55a62.tar.bz2 markdown-rs-c43ad9bfb9467627df1b40266ac7b0d570a55a62.zip |
Refactor to move `index` field to `point`
Diffstat (limited to 'src/construct/list.rs')
-rw-r--r-- | src/construct/list.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/construct/list.rs b/src/construct/list.rs index 12c666b..06be7ec 100644 --- a/src/construct/list.rs +++ b/src/construct/list.rs @@ -317,7 +317,8 @@ fn after(tokenizer: &mut Tokenizer, code: Code, blank: bool) -> StateFnResult { tokenizer.events.len() - 1, &[Token::ListItem], ); - let prefix = tokenizer.index - tokenizer.events[start].index + (if blank { 1 } else { 0 }); + let prefix = tokenizer.point.index - tokenizer.events[start].point.index + + (if blank { 1 } else { 0 }); let container = tokenizer.container.as_mut().unwrap(); container.blank_initial = blank; |