aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler.rs
diff options
context:
space:
mode:
authorLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-14 20:00:00 +0200
committerLibravatar Titus Wormer <tituswormer@gmail.com>2022-07-14 20:02:53 +0200
commit8f9c7c6cf112e44f64b3dfbcd012e6550d8883e5 (patch)
tree59abddd3f455e845f3484ff2b5f6525e9ad91480 /src/compiler.rs
parent5a98a4626d4e87c4681f7f2434bbc56c90bad322 (diff)
downloadmarkdown-rs-8f9c7c6cf112e44f64b3dfbcd012e6550d8883e5.tar.gz
markdown-rs-8f9c7c6cf112e44f64b3dfbcd012e6550d8883e5.tar.bz2
markdown-rs-8f9c7c6cf112e44f64b3dfbcd012e6550d8883e5.zip
Fix two more list bugs
Diffstat (limited to '')
-rw-r--r--src/compiler.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler.rs b/src/compiler.rs
index 51c7e2b..fc0f986 100644
--- a/src/compiler.rs
+++ b/src/compiler.rs
@@ -1239,7 +1239,7 @@ fn on_enter_list(context: &mut CompileContext) {
false
};
- if !at_marker && (!at_list_item || !at_empty_list_item) {
+ if !at_marker && !at_list_item && !at_empty_list_item {
loose = true;
break;
}