@xyd-js/content 0.0.0-build-6e6f290-20260116222509 → 0.0.0-build-1202121-20260121231224

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/vite.js CHANGED
@@ -20117,7 +20117,15 @@ function getDiagramOptions(settings, diagramType) {
20117
20117
  async function thirdPartyRehypePlugins(settings) {
20118
20118
  const plugins = [
20119
20119
  [rehypeRaw, {
20120
- passThrough: ["mdxjsEsm", "mdxJsxFlowElement", "mdxJsxTextElement"]
20120
+ // Ensure MDX expression nodes are passed through so `rehype-raw` doesn't try
20121
+ // to compile them into HAST — this prevents the "Cannot compile `mdxFlowExpression` node" error.
20122
+ passThrough: [
20123
+ "mdxjsEsm",
20124
+ "mdxJsxFlowElement",
20125
+ "mdxJsxTextElement",
20126
+ "mdxFlowExpression",
20127
+ "mdxTextExpression"
20128
+ ]
20121
20129
  }],
20122
20130
  rehypeKatex
20123
20131
  ];