This commit is contained in:
Emanuil Rusev 2014-05-01 02:44:35 +03:00
parent 521803cdcd
commit e8d8801db4
1 changed files with 1 additions and 1 deletions

View File

@ -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',