From 790aed42ab4997d6c5889be6aa42820de0f0f980 Mon Sep 17 00:00:00 2001 From: Aidan Woods Date: Tue, 27 Mar 2018 22:04:11 +0100 Subject: [PATCH] Fix trimming of internal #'s --- Parsedown.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Parsedown.php b/Parsedown.php index 1d9839b..5e4a6e2 100644 --- a/Parsedown.php +++ b/Parsedown.php @@ -505,7 +505,8 @@ class Parsedown return; } - $text = trim($Line['text'], '# '); + $text = trim($Line['text'], '#'); + $text = trim($text, ' '); $Block = array( 'element' => array(