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