Skip to content

Commit

Permalink
Fix E_NOTICES
Browse files Browse the repository at this point in the history
  • Loading branch information
gch1p committed Apr 12, 2019
1 parent f5b50af commit 52a8359
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ParsedownHighlight.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ public function __construct()

protected function blockFencedCodeComplete($block)
{
if (!isset($block['element']['element']['attributes'])) {
return $block;
}

$code = $block['element']['element']['text'];
$languageClass = $block['element']['element']['attributes']['class'];
$language = explode('-', $languageClass);
Expand Down

0 comments on commit 52a8359

Please sign in to comment.