From 4ee910d547ff383c57c513436a6ed2576f66bf0d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Wed, 13 Jul 2022 23:28:07 +0200 Subject: [PATCH] bugfix: do not accidentally start list blocks at second order --- markdown.awk | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.2