From a6dead1fa214c32c4d68e37c02789f8715741e79 Mon Sep 17 00:00:00 2001 From: Dan Brooks Date: Fri, 14 Mar 2014 17:05:32 +0000 Subject: [PATCH] Regex change to support combo of tab & space in md --- code/DocumentationParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/DocumentationParser.php b/code/DocumentationParser.php index 25f98df..89e8360 100755 --- a/code/DocumentationParser.php +++ b/code/DocumentationParser.php @@ -96,7 +96,7 @@ class DocumentationParser { $inner = true; } } - elseif(preg_match('/^\t(.*)/', $line, $matches)) { + elseif(preg_match('/^[\ ]{0,3}?[\t](.*)/', $line, $matches)) { // inner line of block, or first line of standard markdown code block // regex removes first tab (any following tabs are part of the code). $output[$i] = ($started) ? '' : '
' . "\n";