@qualcomm-ui/mdx-vite 1.0.3 → 1.1.0

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/cli.js CHANGED
@@ -4009,7 +4009,7 @@ var DocPropsIndexer = class {
4009
4009
  };
4010
4010
  const comment = prop.comment;
4011
4011
  if (!comment) {
4012
- return { content: [], heading: heading2 };
4012
+ return { content: [], heading: heading2, richContent: [] };
4013
4013
  }
4014
4014
  const content = {
4015
4015
  tagName: "p",
@@ -4017,7 +4017,7 @@ var DocPropsIndexer = class {
4017
4017
  comment.summary.map((entry) => entry.text.replaceAll("\n", " ")).join("")
4018
4018
  ]
4019
4019
  };
4020
- return { content: [content], heading: heading2 };
4020
+ return { content: [content], heading: heading2, richContent: [] };
4021
4021
  }
4022
4022
  };
4023
4023
 
@@ -4460,7 +4460,8 @@ var MarkdownIndexer = class {
4460
4460
  resetSection() {
4461
4461
  this.currentSection = {
4462
4462
  content: [],
4463
- heading: null
4463
+ heading: null,
4464
+ richContent: []
4464
4465
  };
4465
4466
  }
4466
4467
  get toc() {
@@ -4514,6 +4515,7 @@ var MarkdownIndexer = class {
4514
4515
  this.currentSection.heading = heading2;
4515
4516
  return;
4516
4517
  }
4518
+ this.currentSection.richContent.push(element);
4517
4519
  const text = toText(element, { whitespace: "pre-wrap" }).replaceAll("\n", " ").split(" ").filter(size);
4518
4520
  if (text.length) {
4519
4521
  this.currentSection.content.push({
@@ -5193,7 +5195,8 @@ var SearchIndexer = class {
5193
5195
  headingLevel: section.heading?.headingLevel,
5194
5196
  href: section.heading && (this.allowedHeadings.has(section.heading.tagName) || isDocProp) ? `${defaultSection.pathname}#${section.heading.id}` : defaultSection.pathname,
5195
5197
  id: `${defaultSection.id}-${index}${isDocProp ? "-prop" : ""}`,
5196
- isDocProp: isDocProp || void 0
5198
+ isDocProp: isDocProp || void 0,
5199
+ richContent: section.richContent
5197
5200
  };
5198
5201
  });
5199
5202
  }