Summary Files Commits Branches @commit @diff @stats
path: root / single.awk
diff options
context:
space:
mode:
1 files changed, 3 insertions, 1 deletions
-rw-r--r--single.awk4
diff --git a/single.awk b/single.awk
index 2ac29cf..00f9e2e 100644
--- a/single.awk
+++ b/single.awk
@@ -244,7 +244,9 @@ function abs(x) { return ((x < 0) ? -x : x) }
else {
println("</li><li>")
}
- $0 = substr($0, RSTART + RLENGTH)
+}
+!blankline && lengthStack("list-level") > 0 {
+ $0 = substr($0, abs(topStack("list-level")) + 1)
}
# Paragraphs