We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7f918b commit 31a8b18Copy full SHA for 31a8b18
src/index/import/markdown.ts
@@ -188,7 +188,7 @@ export function markdownSourceImport(
188
// In the second list pass, actually construct the list heirarchy.
189
for (const item of listItems.values()) {
190
if (item.parentLine < 0) {
191
- const listBlock = blocks.getPairOrNextHigher(-item.parentLine - 1)![1];
+ const listBlock = blocks.getPairOrNextHigher(-item.parentLine - 1)?.[1];
192
if (!listBlock || !(listBlock.type === "list")) continue;
193
194
(listBlock as ListBlockData).items.push(item);
0 commit comments