Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a604b9e

Browse files
committedOct 11, 2024·
[FEATURE] Support automatically created multi-level menus
Resolves #1108
1 parent bc539ae commit a604b9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎packages/guides-markdown/src/Markdown/Parsers/BlockQuoteParser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ public function parse(MarkupLanguageParser $parser, NodeWalker $walker, CommonMa
6262

6363
// leaving the heading node
6464
if ($commonMarkNode instanceof BlockQuote) {
65-
if (count($content) > 0 and $content[0] instanceof ParagraphNode and ($content[0]->getValue()[0]) instanceof InlineCompoundNode) {
65+
if (count($content) > 0 && $content[0] instanceof ParagraphNode && ($content[0]->getValue()[0]) instanceof InlineCompoundNode) {
6666
$paragraphContent = $content[0]->getValue()[0]->getValue();
67-
if (count($paragraphContent) > 0 and $paragraphContent[0] instanceof PlainTextInlineNode) {
67+
if (count($paragraphContent) > 0 && $paragraphContent[0] instanceof PlainTextInlineNode) {
6868
$text = trim($paragraphContent[0]->getValue());
6969
$newParagraphContent = $paragraphContent;
7070
array_shift($newParagraphContent);

0 commit comments

Comments
 (0)
Please sign in to comment.