From 9948afd8795ab15c5320000bfaf11c17063fded0 Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Thu, 5 Dec 2024 19:37:21 +0100 Subject: [PATCH] Add suffix to heading identifiers of the same name --- .../Feature/MarkdownHeadingRendererTest.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/packages/framework/tests/Feature/MarkdownHeadingRendererTest.php b/packages/framework/tests/Feature/MarkdownHeadingRendererTest.php index a429120892f..2627220362d 100644 --- a/packages/framework/tests/Feature/MarkdownHeadingRendererTest.php +++ b/packages/framework/tests/Feature/MarkdownHeadingRendererTest.php @@ -257,14 +257,15 @@ public function testItHandlesMultipleHeadingsWithTheSameName() $html = (new MarkdownService($markdown, DocumentationPage::class))->parse(); $this->assertSame(<<<'HTML' -

Heading#

\n -

Heading#

\n -

Unique Heading#

\n -

With Children#

\n -

Child Heading#

\n -

Child Heading#

\n -

Unique Child Heading#

\n - +

Heading#

+

Heading#

+

Unique Heading#

+

With Children#

+

Child Heading#

+

Child Heading#

+

Unique Child Heading#

+

Child Heading#

+ HTML, $html); }