Skip to content

Commit 870baca

Browse files
committed
[TASK] Handle all markdown documents like rst orphans
Markdown does not have a toctree concept. However rst requires all non-orphan documents to be in a toctree
1 parent b65913f commit 870baca

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/guides-markdown/src/Markdown/MarkupLanguageParser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ public function parse(ParserContext $parserContext, string $contents): DocumentN
6565
private function parseDocument(NodeWalker $walker, string $hash): DocumentNode
6666
{
6767
$document = new DocumentNode($hash, ltrim($this->getParserContext()->getCurrentAbsolutePath(), '/'));
68+
$document->setOrphan(true);
6869
$this->document = $document;
6970

7071
while ($event = $walker->next()) {

0 commit comments

Comments
 (0)