From: Paul Hänsch Date: Fri, 1 Sep 2023 15:55:52 +0000 (+0200) Subject: Squashed 'cgilite/' changes from 8e5ffff1..4ee910d5 X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=131ebbe3155cdd45d2f7473302157f5ba4594759;p=shellwiki Squashed 'cgilite/' changes from 8e5ffff1..4ee910d5 4ee910d5 bugfix: do not accidentally start list blocks at second order git-subtree-dir: cgilite git-subtree-split: 4ee910d547ff383c57c513436a6ed2576f66bf0d --- 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);