aboutsummaryrefslogtreecommitdiffstats
path: root/src/construct/list.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-18 13:31:00 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-18 14:12:58 +0200
commitaf05141ad1a3850e273f2992fe3ceb85747f4d62 (patch)
tree1aa3581cc8eb568f8b6dc4389d2091a4866d7e37 /src/construct/list.rs
parentc9f75249b83839130ffbc3b6dd175b0e31008cb7 (diff)
downloadmarkdown-rs-af05141ad1a3850e273f2992fe3ceb85747f4d62.tar.gz
markdown-rs-af05141ad1a3850e273f2992fe3ceb85747f4d62.tar.bz2
markdown-rs-af05141ad1a3850e273f2992fe3ceb85747f4d62.zip
Refactor to organize resolvers
Diffstat (limited to 'src/construct/list.rs')
-rw-r--r--src/construct/list.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/construct/list.rs b/src/construct/list.rs
index c2007e6..fce8f00 100644
--- a/src/construct/list.rs
+++ b/src/construct/list.rs
@@ -315,7 +315,7 @@ fn after(tokenizer: &mut Tokenizer, code: Code, blank: bool) -> StateFnResult {
container.size = prefix;
tokenizer.exit(Token::ListItemPrefix);
- tokenizer.register_resolver_before("list_item".to_string(), Box::new(resolve));
+ tokenizer.register_resolver_before("list_item".to_string(), Box::new(resolve_list_item));
(State::Ok, Some(vec![code]))
}
}
@@ -381,7 +381,7 @@ fn nok(_tokenizer: &mut Tokenizer, _code: Code) -> StateFnResult {
}
/// Find adjacent list items with the same marker.
-pub fn resolve(tokenizer: &mut Tokenizer) -> Vec<Event> {
+pub fn resolve_list_item(tokenizer: &mut Tokenizer) -> Vec<Event> {
let mut edit_map = EditMap::new();
let mut index = 0;
let mut balance = 0;