Skip to content

Commit 10fd0f9

Browse files
committed
Add unit test for when using Setext headers
Provides proof for #1337
1 parent 2eeb4c5 commit 10fd0f9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

packages/framework/tests/Feature/Actions/GeneratesSidebarTableOfContentsTest.php

+7
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,11 @@ public function testReturnStringContainsExpectedContent()
3737
str_replace("\n", '', $result)
3838
);
3939
}
40+
41+
public function testCanGenerateTableOfContentsForDocumentUsingSetextHeaders()
42+
{
43+
$markdown = "Level 1\n=======\nLevel 2\n-------\nLevel 3\n-------\n";
44+
45+
$result = (new GeneratesTableOfContents($markdown))->execute();
46+
}
4047
}

0 commit comments

Comments
 (0)