Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
1 files changed, 8 insertions, 1 deletions
-rw-r--r--single.awk9
diff --git a/single.awk b/single.awk
index d47dc43..cc80c46 100644
--- a/single.awk
+++ b/single.awk
@@ -115,7 +115,14 @@ BEGIN {
# Inline HTML
/^[ \t]*<\/?[0-9A-Za-z]+/ {
- _next()
+ match($0, /^[ \t]*/)
+ if (last_html || RLENGTH - 2 * list_level < 4) {
+ last_html = 1
+ _next()
+ }
+}
+{
+ last_html = 0
}
# Link definition