diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-07-15 12:34:23 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-07-15 12:36:36 +0200 |
commit | 66c70d1b917976c32b770e5d724fc4e47a2309c6 (patch) | |
tree | faac63df2b0687d15f7de556d765f6c93a3d7dd1 /src/compiler.rs | |
parent | 21dbf42b5e5979fb30837bbb3b2638dcf5711249 (diff) | |
download | markdown-rs-66c70d1b917976c32b770e5d724fc4e47a2309c6.tar.gz markdown-rs-66c70d1b917976c32b770e5d724fc4e47a2309c6.tar.bz2 markdown-rs-66c70d1b917976c32b770e5d724fc4e47a2309c6.zip |
Refactor to sort, document lists in token
Diffstat (limited to '')
-rw-r--r-- | src/compiler.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/compiler.rs b/src/compiler.rs index 7b50147..6484aaa 100644 --- a/src/compiler.rs +++ b/src/compiler.rs @@ -723,8 +723,7 @@ fn on_enter_list(context: &mut CompileContext) { // Blank line directly in list or directly in list item, // but not a blank line after an empty list item. - if balance < 3 && event.token_type == Token::BlankLineEnding - { + if balance < 3 && event.token_type == Token::BlankLineEnding { let at_marker = balance == 2 && events[skip::opt_back( events, |