@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/CHANGELOG.md +13 -7
- package/dist/md.js +9 -1
- package/dist/md.js.map +1 -1
- package/dist/vite.js +9 -1
- package/dist/vite.js.map +1 -1
- package/package.json +7 -7
- package/packages/md/plugins/index.ts +9 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
# @xyd-js/content
|
|
2
2
|
|
|
3
|
-
## 0.0.0-build-
|
|
3
|
+
## 0.0.0-build-1202121-20260121231224
|
|
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-
|
|
10
|
-
- @xyd-js/context@0.0.0-build-
|
|
11
|
-
- @xyd-js/core@0.0.0-build-
|
|
12
|
-
- @xyd-js/gql@0.0.0-build-
|
|
13
|
-
- @xyd-js/openapi@0.0.0-build-
|
|
14
|
-
- @xyd-js/sources@0.0.0-build-
|
|
9
|
+
- @xyd-js/components@0.0.0-build-1202121-20260121231224
|
|
10
|
+
- @xyd-js/context@0.0.0-build-1202121-20260121231224
|
|
11
|
+
- @xyd-js/core@0.0.0-build-1202121-20260121231224
|
|
12
|
+
- @xyd-js/gql@0.0.0-build-1202121-20260121231224
|
|
13
|
+
- @xyd-js/openapi@0.0.0-build-1202121-20260121231224
|
|
14
|
+
- @xyd-js/sources@0.0.0-build-1202121-20260121231224
|
|
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
|
-
|
|
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
|
];
|