From 71e7a5660994c29a7829dc0995565706ae16a79a Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Fri, 15 Nov 2019 02:46:34 -0700 Subject: [PATCH] Markdown.pl: don't cuddle up nested lists too closely When list items are using paragraphs, make sure they do not cuddle up too closely to the surrounding closing "" when they contain nested lists. Also include a "hint" for text-only browsers that super compact cuddling is not wanted at that spot. Signed-off-by: Kyle J. McKay --- Markdown.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/Markdown.pl b/Markdown.pl index 1ddb3a1..7c8c6e3 100755 --- a/Markdown.pl +++ b/Markdown.pl @@ -1859,6 +1859,7 @@ sub _ProcessListItems { if ($leading_line or ($item =~ m/\n{2,}/)) { $item = _RunBlockGamut(_Outdent($item)); + $item =~ s{()\s*\z}{$1} and $item .= "\n$idt "; } else { # Recursion for sub-lists: