@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
package/dist/index.js
CHANGED
|
@@ -6023,6 +6023,7 @@ async function formatThemeNodes() {
|
|
|
6023
6023
|
}
|
|
6024
6024
|
|
|
6025
6025
|
// src/ai-knowledge/generator/section-extractor.ts
|
|
6026
|
+
import { toString as toString2 } from "mdast-util-to-string";
|
|
6026
6027
|
import remarkStringify3 from "remark-stringify";
|
|
6027
6028
|
import { unified as unified4 } from "unified";
|
|
6028
6029
|
import { visit as visit10 } from "unist-util-visit";
|
|
@@ -6065,7 +6066,7 @@ var SectionExtractor = class {
|
|
|
6065
6066
|
while (headerStack.length > 0 && headerStack[headerStack.length - 1].depth >= heading2.depth) {
|
|
6066
6067
|
headerStack.pop();
|
|
6067
6068
|
}
|
|
6068
|
-
const headingText =
|
|
6069
|
+
const headingText = toString2(heading2);
|
|
6069
6070
|
headerStack.push({ depth: heading2.depth, text: headingText });
|
|
6070
6071
|
pendingSection = {
|
|
6071
6072
|
headerPath: headerStack.map((h) => h.text),
|
|
@@ -6079,13 +6080,6 @@ var SectionExtractor = class {
|
|
|
6079
6080
|
finalizeSection();
|
|
6080
6081
|
return sections;
|
|
6081
6082
|
}
|
|
6082
|
-
getHeadingText(heading2) {
|
|
6083
|
-
let text = "";
|
|
6084
|
-
visit10(heading2, "text", (node) => {
|
|
6085
|
-
text += node.value;
|
|
6086
|
-
});
|
|
6087
|
-
return text.trim();
|
|
6088
|
-
}
|
|
6089
6083
|
buildSectionEntry(section, pageInfo) {
|
|
6090
6084
|
const { nodes, terms } = this.extractTerms(section.nodes);
|
|
6091
6085
|
if (nodes.length === 0) {
|
|
@@ -7354,7 +7348,7 @@ var remarkFrontmatterTitle = () => {
|
|
|
7354
7348
|
};
|
|
7355
7349
|
|
|
7356
7350
|
// src/docs-plugin/remark/remark-self-link-headings.ts
|
|
7357
|
-
import { toString as
|
|
7351
|
+
import { toString as toString3 } from "mdast-util-to-string";
|
|
7358
7352
|
import { visit as visit15 } from "unist-util-visit";
|
|
7359
7353
|
var emptyOptions2 = {};
|
|
7360
7354
|
function remarkSelfLinkHeadings(baseUrl = "", options) {
|
|
@@ -7385,7 +7379,7 @@ function remarkSelfLinkHeadings(baseUrl = "", options) {
|
|
|
7385
7379
|
seenIds.clear();
|
|
7386
7380
|
visit15(tree, "heading", (node) => {
|
|
7387
7381
|
if (allowedLevels.has(node.depth)) {
|
|
7388
|
-
const text =
|
|
7382
|
+
const text = toString3(node);
|
|
7389
7383
|
const slug = prefix + createSlug(text);
|
|
7390
7384
|
const linkNode = {
|
|
7391
7385
|
children: node.children,
|