resolve #135
This commit is contained in:
parent
521803cdcd
commit
e8d8801db4
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue