From 131ebbe3155cdd45d2f7473302157f5ba4594759 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Fri, 1 Sep 2023 17:55:52 +0200 Subject: [PATCH] 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 --- 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