From e8d8801db4c6e438ef3b7612249b95061936294b Mon Sep 17 00:00:00 2001 From: Emanuil Rusev Date: Thu, 1 May 2014 02:44:35 +0300 Subject: [PATCH] resolve #135 --- Parsedown.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parsedown.php b/Parsedown.php index b087741..20db134 100755 --- a/Parsedown.php +++ b/Parsedown.php @@ -418,7 +418,7 @@ class Parsedown protected function identifyFencedCode($Line) { - if (preg_match('/^(['.$Line['text'][0].']{3,})[ ]*(\w+)?[ ]*$/', $Line['text'], $matches)) + if (preg_match('/^(['.$Line['text'][0].']{3,})[ ]*([\w-]+)?[ ]*$/', $Line['text'], $matches)) { $Element = array( 'name' => 'code',