diff options
| Commit | d238b873716d20284ec3671ff11d15d037709044 (patch) | |
|---|---|---|
| Author | 2025-01-01 11:09:17 +0200 | |
| Committer | 2025-01-01 11:09:17 +0200 | |
| Files | 81a236dc125e6dba2e5b34fb72bae542e8b28a01 /single.awk | |
| csg-d238b873716d20284ec3671ff11d15d037709044.tar csg-d238b873716d20284ec3671ff11d15d037709044.tar.gz csg-d238b873716d20284ec3671ff11d15d037709044.zip | ||
| Parent | 18857b564c66d1306a0fff3388fb4b62647f3142 (diff) | |
fix(single): Fix first element after list not being a paragraph
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 |
