@hyperbook/markdown 0.24.4 → 0.24.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -0
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -73476,6 +73476,7 @@ var remarkCollectSearchDocuments_default = (ctx) => () => {
|
|
|
73476
73476
|
const startIndex = index2;
|
|
73477
73477
|
const depth = start.depth;
|
|
73478
73478
|
const isEnd = (node4) => node4.type === "heading" && node4.depth <= depth || node4.type === "export";
|
|
73479
|
+
if (!parent) return;
|
|
73479
73480
|
const end = findAfter(parent, start, isEnd);
|
|
73480
73481
|
const endIndex = parent.children.indexOf(end);
|
|
73481
73482
|
const between = parent.children.slice(
|