Skip to content

Commit

Permalink
[FEATURE] Support automatically created multi-level menus
Browse files Browse the repository at this point in the history
Resolves #1108
  • Loading branch information
linawolf committed Oct 11, 2024
1 parent bc539ae commit a604b9e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ public function parse(MarkupLanguageParser $parser, NodeWalker $walker, CommonMa

// leaving the heading node
if ($commonMarkNode instanceof BlockQuote) {
if (count($content) > 0 and $content[0] instanceof ParagraphNode and ($content[0]->getValue()[0]) instanceof InlineCompoundNode) {
if (count($content) > 0 && $content[0] instanceof ParagraphNode && ($content[0]->getValue()[0]) instanceof InlineCompoundNode) {
$paragraphContent = $content[0]->getValue()[0]->getValue();
if (count($paragraphContent) > 0 and $paragraphContent[0] instanceof PlainTextInlineNode) {
if (count($paragraphContent) > 0 && $paragraphContent[0] instanceof PlainTextInlineNode) {
$text = trim($paragraphContent[0]->getValue());
$newParagraphContent = $paragraphContent;
array_shift($newParagraphContent);
Expand Down

0 comments on commit a604b9e

Please sign in to comment.