diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-08-15 11:24:06 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-08-15 11:24:06 +0200 |
commit | 6e20c3e79d4270fafb13a63af51eaffaa45c11e1 (patch) | |
tree | 3fb3952e00c5e111f30a73d7c25b0879e5a1d052 /src/content | |
parent | 3a4de4b3a89e7171f8e3e0b6bf02fcd2d5c5f748 (diff) | |
download | markdown-rs-6e20c3e79d4270fafb13a63af51eaffaa45c11e1.tar.gz markdown-rs-6e20c3e79d4270fafb13a63af51eaffaa45c11e1.tar.bz2 markdown-rs-6e20c3e79d4270fafb13a63af51eaffaa45c11e1.zip |
Refactor to rename list construct to list item
Diffstat (limited to '')
-rw-r--r-- | src/content/document.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/content/document.rs b/src/content/document.rs index 41d60e2..f90aea7 100644 --- a/src/content/document.rs +++ b/src/content/document.rs @@ -6,7 +6,7 @@ //! The constructs found in flow are: //! //! * [Block quote][crate::construct::block_quote] -//! * [List][crate::construct::list] +//! * [List][crate::construct::list_item] use crate::event::{Content, Event, Kind, Link, Name, Point}; use crate::parser::ParseState; @@ -103,7 +103,7 @@ pub fn container_existing_before(tokenizer: &mut Tokenizer) -> State { let name = match container.kind { Container::BlockQuote => StateName::BlockQuoteContStart, - Container::ListItem => StateName::ListContStart, + Container::ListItem => StateName::ListItemContStart, }; tokenizer.attempt( @@ -201,7 +201,7 @@ pub fn container_new_before_not_block_quote(tokenizer: &mut Tokenizer) -> State State::Next(StateName::DocumentContainerNewAfter), State::Next(StateName::DocumentContainerNewBeforeNotList), ); - State::Retry(StateName::ListStart) + State::Retry(StateName::ListItemStart) } /// At new container, but not a list (or block quote). |