We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3a612f commit b005d48Copy full SHA for b005d48
src/index/import/markdown.ts
@@ -184,7 +184,7 @@ export function markdownSourceImport(
184
// In the second list pass, actually construct the list heirarchy.
185
for (const item of listItems.values()) {
186
if (item.parentLine < 0) {
187
- const listBlock = blocks.get(-item.parentLine);
+ const listBlock = blocks.getPairOrNextHigher(-item.parentLine)![1];
188
if (!listBlock || !(listBlock.type === "list")) continue;
189
190
(listBlock as ListBlockData).items.push(item);
0 commit comments