@qualcomm-ui/mdx-vite 2.16.0 → 2.16.1
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 +0 -1
- package/dist/ai-knowledge/generator/section-extractor.d.ts.map +1 -1
- package/dist/cli.js +2 -8
- package/dist/cli.js.map +3 -3
- package/dist/index.js +4 -10
- package/dist/index.js.map +3 -3
- package/dist/tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"section-extractor.d.ts","sourceRoot":"","sources":["../../../src/ai-knowledge/generator/section-extractor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"section-extractor.d.ts","sourceRoot":"","sources":["../../../src/ai-knowledge/generator/section-extractor.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAqB,IAAI,EAAoB,MAAM,OAAO,CAAA;AAStE,OAAO,KAAK,EAAc,YAAY,EAAe,MAAM,iBAAiB,CAAA;AAG5E,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,EAAE,CAAA;IAEjB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B;AAED,MAAM,WAAW,QAAQ;IACvB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;CACb;AAaD;;GAEG;AACH,qBAAa,gBAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAa;IACpC,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAQ;gBAE7B,OAAO,CAAC,EAAE,uBAAuB;IAM7C;;OAEG;IACH,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,GAAG,YAAY,EAAE;IAyDvD,OAAO,CAAC,iBAAiB;IAgEzB,OAAO,CAAC,YAAY;IAwCpB,OAAO,CAAC,eAAe;IAYvB;;;OAGG;IACH,OAAO,CAAC,cAAc;IAkBtB,OAAO,CAAC,iBAAiB;IAMzB,OAAO,CAAC,cAAc;IAOtB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,gBAAgB;CAGzB"}
|
package/dist/cli.js
CHANGED
|
@@ -6121,6 +6121,7 @@ async function formatThemeNodes() {
|
|
|
6121
6121
|
}
|
|
6122
6122
|
|
|
6123
6123
|
// src/ai-knowledge/generator/section-extractor.ts
|
|
6124
|
+
import { toString as toString2 } from "mdast-util-to-string";
|
|
6124
6125
|
import remarkStringify3 from "remark-stringify";
|
|
6125
6126
|
import { unified as unified4 } from "unified";
|
|
6126
6127
|
import { visit as visit10 } from "unist-util-visit";
|
|
@@ -6163,7 +6164,7 @@ var SectionExtractor = class {
|
|
|
6163
6164
|
while (headerStack.length > 0 && headerStack[headerStack.length - 1].depth >= heading.depth) {
|
|
6164
6165
|
headerStack.pop();
|
|
6165
6166
|
}
|
|
6166
|
-
const headingText =
|
|
6167
|
+
const headingText = toString2(heading);
|
|
6167
6168
|
headerStack.push({ depth: heading.depth, text: headingText });
|
|
6168
6169
|
pendingSection = {
|
|
6169
6170
|
headerPath: headerStack.map((h) => h.text),
|
|
@@ -6177,13 +6178,6 @@ var SectionExtractor = class {
|
|
|
6177
6178
|
finalizeSection();
|
|
6178
6179
|
return sections;
|
|
6179
6180
|
}
|
|
6180
|
-
getHeadingText(heading) {
|
|
6181
|
-
let text = "";
|
|
6182
|
-
visit10(heading, "text", (node) => {
|
|
6183
|
-
text += node.value;
|
|
6184
|
-
});
|
|
6185
|
-
return text.trim();
|
|
6186
|
-
}
|
|
6187
6181
|
buildSectionEntry(section, pageInfo) {
|
|
6188
6182
|
const { nodes, terms } = this.extractTerms(section.nodes);
|
|
6189
6183
|
if (nodes.length === 0) {
|