@xyd-js/content 0.0.0-build-de75896-20260116162420 → 0.0.0-build-386c43a-20260121224819

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/CHANGELOG.md CHANGED
@@ -1,14 +1,20 @@
1
1
  # @xyd-js/content
2
2
 
3
- ## 0.0.0-build-de75896-20260116162420
3
+ ## 0.0.0-build-386c43a-20260121224819
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - update all packages
8
8
  - Updated dependencies
9
- - @xyd-js/components@0.0.0-build-de75896-20260116162420
10
- - @xyd-js/context@0.0.0-build-de75896-20260116162420
11
- - @xyd-js/core@0.0.0-build-de75896-20260116162420
12
- - @xyd-js/gql@0.0.0-build-de75896-20260116162420
13
- - @xyd-js/openapi@0.0.0-build-de75896-20260116162420
14
- - @xyd-js/sources@0.0.0-build-de75896-20260116162420
9
+ - @xyd-js/components@0.0.0-build-386c43a-20260121224819
10
+ - @xyd-js/context@0.0.0-build-386c43a-20260121224819
11
+ - @xyd-js/core@0.0.0-build-386c43a-20260121224819
12
+ - @xyd-js/gql@0.0.0-build-386c43a-20260121224819
13
+ - @xyd-js/openapi@0.0.0-build-386c43a-20260121224819
14
+ - @xyd-js/sources@0.0.0-build-386c43a-20260121224819
15
+
16
+ ## Unreleased
17
+
18
+ ### Fixed
19
+
20
+ - Fix: prevent "Cannot compile `mdxFlowExpression` node" when compiling MDX that includes flow expressions together with raw HTML — ensure `rehype-raw` passes through MDX expression node types (`mdxFlowExpression`, `mdxTextExpression`).
package/dist/md.js CHANGED
@@ -20153,7 +20153,15 @@ function getDiagramOptions(settings, diagramType) {
20153
20153
  async function thirdPartyRehypePlugins(settings) {
20154
20154
  const plugins = [
20155
20155
  [rehypeRaw, {
20156
- passThrough: ["mdxjsEsm", "mdxJsxFlowElement", "mdxJsxTextElement"]
20156
+ // Ensure MDX expression nodes are passed through so `rehype-raw` doesn't try
20157
+ // to compile them into HAST — this prevents the "Cannot compile `mdxFlowExpression` node" error.
20158
+ passThrough: [
20159
+ "mdxjsEsm",
20160
+ "mdxJsxFlowElement",
20161
+ "mdxJsxTextElement",
20162
+ "mdxFlowExpression",
20163
+ "mdxTextExpression"
20164
+ ]
20157
20165
  }],
20158
20166
  rehypeKatex
20159
20167
  ];