You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it("should parse markdown files and extract headers",async()=>{
24
-
// Mock markdown content
23
+
it("should parse markdown files and extract headers for definition listing",async()=>{
24
+
// This test verifies that the tree-sitter integration correctly
25
+
// formats markdown headers for the definition listing feature
25
26
constmarkdownContent=
26
27
"# Main Header\n\nThis is some content under the main header.\nIt spans multiple lines to meet the minimum section length.\n\n## Section 1\n\nThis is content for section 1.\nIt also spans multiple lines.\n\n### Subsection 1.1\n\nThis is a subsection with enough lines\nto meet the minimum section length requirement.\n\n## Section 2\n\nFinal section content.\nWith multiple lines.\n"
// Check the result - should be undefined since no sections meet the minimum length
77
-
expect(result).toBeUndefined()
78
-
})
79
-
80
-
it("should handle markdown files with mixed header styles",async()=>{
81
-
// Mock markdown content with mixed header styles
82
-
constmarkdownContent=
83
-
"# ATX Header\nThis is content under an ATX header.\nIt spans multiple lines to meet the minimum section length.\n\nSetext Header\n============\nThis is content under a setext header.\nIt also spans multiple lines to meet the minimum section length.\n"
84
-
85
-
// Mock fs.readFile to return our markdown content
0 commit comments