From f9a023d56a291340f3e4935825807374488e53df Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sun, 14 Feb 2021 10:52:28 -0700 Subject: [PATCH] Markdown.pl: remove td, th, tr from thead and tfoot closers Although "thead" and "tfoot" do, indeed, have an optional closing tag, neither "td", "th" nor "tr" will auto-close them. Therefore remove "thead" and "tfoot" from the list of tags that "td", "th" and "tr" will auto-close. Signed-off-by: Kyle J. McKay --- Markdown.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Markdown.pl b/Markdown.pl index f8c59e6..f5a9a10 100755 --- a/Markdown.pl +++ b/Markdown.pl @@ -3103,11 +3103,11 @@ BEGIN { 'dt' => { map({$_ => 1} qw(colgroup dd dt li p)) }, 'li' => { map({$_ => 1} qw(colgroup dd dt li p)) }, 'tbody' => \%tagocl, - 'td' => { map({$_ => 1} qw(colgroup dd dt li p td tfoot th thead)) }, + 'td' => { map({$_ => 1} qw(colgroup dd dt li p td th)) }, 'tfoot' => \%tagocl, - 'th' => { map({$_ => 1} qw(colgroup dd dt li p td tfoot th thead)) }, + 'th' => { map({$_ => 1} qw(colgroup dd dt li p td th)) }, 'thead' => \%tagocl, - 'tr' => { map({$_ => 1} qw(colgroup dd dt li p td tfoot th thead tr)) }, + 'tr' => { map({$_ => 1} qw(colgroup dd dt li p td th tr)) }, ); %tagblk = map({$_ => 1} qw(address blockquote center div dl h1 h2 h3 h4 h5 h6 hr ol p pre table ul)); %taginl = map({$_ => 1} qw(a abbr acronym b basefont bdo big br cite code dfn em font i