From 38a41b7a8c770a9b9b6cfdbe6c81604dadadce00 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Sat, 27 Feb 2021 01:47:58 -0700 Subject: [PATCH] Markdown.pl: process "br" indicators at end of paragraph Normally there's no point to a "
" tag at the end of a paragraph as the end of the paragraph will force a break anyway. Unless that "br" tag contains a "clear='...'" attribute. Make sure that 3 or more spaces at the end of a paragraph actually turns into a "
" tag but at the same time make 2 spaces at the end of a paragraph just go away as it serves no purpose. Signed-off-by: Kyle J. McKay --- Markdown.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Markdown.pl b/Markdown.pl index bf20d72..ca39c66 100755 --- a/Markdown.pl +++ b/Markdown.pl @@ -1418,8 +1418,9 @@ sub _RunSpanGamut { $text = _DoItalicsAndBoldAndStrike($text); # Do hard breaks: - $text =~ s/ {3,}\n/