@xyd-js/content 0.0.0-build-6e6f290-20260116222509 → 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 +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/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
|
-
|
|
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
|
];
|