From: Paul Hänsch Date: Wed, 13 Jul 2022 21:28:07 +0000 (+0200) Subject: bugfix: do not accidentally start list blocks at second order X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=4ee910d547ff383c57c513436a6ed2576f66bf0d;p=cgilite bugfix: do not accidentally start list blocks at second order --- diff --git a/markdown.awk b/markdown.awk index 92b32fc..3b5a9bb 100755 --- a/markdown.awk +++ b/markdown.awk @@ -751,6 +751,7 @@ function _startlist(block, type, mark, exclude, LOCAL, st, len, list, indent, te text = substr(block, 1, st - 1); block = substr(block, st + len); if (match(text, /\n[[:space:]]*\n/)) return 0; + if (match(text, "(^|\n) ? ? ?" exclude "[ \t][^\n]+")) return 0; if (match( list, "\n" exclude "[ \t]" )) { block = substr(list, RSTART + 1) block; list = substr(list, 1, RSTART);