@qualcomm-ui/mdx-vite 2.16.1 → 2.16.2
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/ai-knowledge/generator/section-extractor.d.ts.map +1 -1
- package/dist/cli.js +15 -0
- package/dist/cli.js.map +2 -2
- package/dist/index.js +15 -0
- package/dist/index.js.map +2 -2
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6054,11 +6054,20 @@ var SectionExtractor = class {
|
|
|
6054
6054
|
};
|
|
6055
6055
|
for (let i = 0; i < tree.children.length; i++) {
|
|
6056
6056
|
const node = tree.children[i];
|
|
6057
|
+
if (node.type === "yaml") {
|
|
6058
|
+
continue;
|
|
6059
|
+
}
|
|
6057
6060
|
if (node.type === "heading") {
|
|
6058
6061
|
const heading2 = node;
|
|
6059
6062
|
if (!this.depths.has(heading2.depth)) {
|
|
6060
6063
|
if (pendingSection) {
|
|
6061
6064
|
pendingSection.nodes.push(node);
|
|
6065
|
+
} else {
|
|
6066
|
+
pendingSection = {
|
|
6067
|
+
headerPath: headerStack.map((h) => h.text),
|
|
6068
|
+
nodes: [],
|
|
6069
|
+
startIndex: i
|
|
6070
|
+
};
|
|
6062
6071
|
}
|
|
6063
6072
|
continue;
|
|
6064
6073
|
}
|
|
@@ -6075,6 +6084,12 @@ var SectionExtractor = class {
|
|
|
6075
6084
|
};
|
|
6076
6085
|
} else if (pendingSection) {
|
|
6077
6086
|
pendingSection.nodes.push(node);
|
|
6087
|
+
} else {
|
|
6088
|
+
pendingSection = {
|
|
6089
|
+
headerPath: headerStack.map((h) => h.text),
|
|
6090
|
+
nodes: [node],
|
|
6091
|
+
startIndex: i
|
|
6092
|
+
};
|
|
6078
6093
|
}
|
|
6079
6094
|
}
|
|
6080
6095
|
finalizeSection();
|