Skip to content

Commit b005d48

Browse files
fix blocks contained in the implicit root section not being added to index (#114)
1 parent f3a612f commit b005d48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index/import/markdown.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ export function markdownSourceImport(
184184
// In the second list pass, actually construct the list heirarchy.
185185
for (const item of listItems.values()) {
186186
if (item.parentLine < 0) {
187-
const listBlock = blocks.get(-item.parentLine);
187+
const listBlock = blocks.getPairOrNextHigher(-item.parentLine)![1];
188188
if (!listBlock || !(listBlock.type === "list")) continue;
189189

190190
(listBlock as ListBlockData).items.push(item);

0 commit comments

Comments
 (0)