From 1e640c9f4593b7a6e9d87eecac940fc250a84738 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Thu, 19 Jan 2017 02:29:32 -0800 Subject: [PATCH] Markdown.pl: recognize two ```-delimited blocks in a row Backticks-delimited code blocks do not require a blank line between them to be recognized (at least they're not supposed to). Recognize two such code blocks in a row by tweaking the regex to use an assertion instead of an explicit match. Signed-off-by: Kyle J. McKay --- Markdown.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Markdown.pl b/Markdown.pl index 2bb9bf4..7eb1364 100755 --- a/Markdown.pl +++ b/Markdown.pl @@ -477,7 +477,7 @@ sub _HashBTCodeBlocks { my $text = shift; $text =~ s{ - (?:\n|\A) + (?:(?<=\n)|\A) ``(`+)[ \t]*(?:([\w.+-]+)[ \t]*)?\n ( # $3 = the code block -- one or more lines, starting with ``` (?: