Summary Files Commits Branches @commit @diff @stats
path: root / single.awk
diff options
context:
space:
mode:
1 files changed, 5 insertions, 3 deletions
-rw-r--r--single.awk8
diff --git a/single.awk b/single.awk
index ee01504..54e3dc3 100644
--- a/single.awk
+++ b/single.awk
@@ -216,11 +216,13 @@ function start_list(level, type) {
list_level > 0 && !list_started && /[^ \t]/ { ## Non-list line
match($0, /^[ \t]*/)
level = int((RLENGTH + 2) / 2)
- while (list_level >= level) {
- end_list()
- }
$0 = substr($0, 2 * level - 1)
not_paragraph = 1
+
+ while (list_level >= level && emptyP1) {
+ end_list()
+ not_paragraph = 0
+ }
}
# Code blocks