diff options
1 files changed, 5 insertions, 3 deletions
| -rw-r--r-- | single.awk | 8 |
@@ -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 |
