@@ -9,6 +9,28 @@ index 239d72f5921e2d1b7359e569ae5b74c12d7c9d8a..ebeb619da1e3ccb7722e9388c92c1e21
99 import { forwardRef } from "react";
1010 const Image = forwardRef((props, ref) => {
1111 const ComponentToUse = typeof props.src === "object" ? NextImage : "img";
12+ diff --git a/dist/client/components/index.js b/dist/client/components/index.js
13+ index 9d05118d3d10e746cd2c020785a0f34465bb8570..218107600d7efed1b5f9d49f0a696b166917d1ce 100644
14+ --- a/dist/client/components/index.js
15+ +++ b/dist/client/components/index.js
16+ @@ -14,7 +14,7 @@ import { Tabs } from "./tabs/index.js";
17+ import { Td } from "./td.js";
18+ import { Th } from "./th.js";
19+ import { Tr } from "./tr.js";
20+ - import { Mermaid } from "@theguild/remark-mermaid/mermaid";
21+ + // import { Mermaid } from "@theguild/remark-mermaid/mermaid";
22+ import { MathJax, MathJaxContext } from "better-react-mathjax";
23+ import { Playground } from "./playground.js";
24+ import { Popup } from "./popup.js";
25+ @@ -29,7 +29,7 @@ export {
26+ ImageZoom,
27+ MathJax,
28+ MathJaxContext,
29+ - Mermaid,
30+ + // Mermaid, // disabled to use rehype-mermaid and remove cytoscape from the bundle
31+ Playground,
32+ Popup,
33+ Pre,
1234diff --git a/dist/client/normalize-pages.js b/dist/client/normalize-pages.js
1335index 15afee0c1de26f47d781f423e5ec32e33ad925d3..fefd01736bd2b778df275bf50ac48384d5f63845 100644
1436--- a/dist/client/normalize-pages.js
@@ -24,3 +46,24 @@ index 15afee0c1de26f47d781f423e5ec32e33ad925d3..fefd01736bd2b778df275bf50ac48384
2446 if (!isValid) {
2547 throw new Error(
2648 `Validation of "_meta" file has failed.
49+ diff --git a/dist/server/compile.js b/dist/server/compile.js
50+ index c266efec3fe344a81c6d5791b93ab1b2bd268782..4866148a725800ef2326732f78807cca0f04cb7b 100644
51+ --- a/dist/server/compile.js
52+ +++ b/dist/server/compile.js
53+ @@ -1,6 +1,6 @@
54+ import path from "path";
55+ import { createProcessor } from "@mdx-js/mdx";
56+ - import { remarkMermaid } from "@theguild/remark-mermaid";
57+ + // import { remarkMermaid } from "@theguild/remark-mermaid";
58+ import { remarkNpm2Yarn } from "@theguild/remark-npm2yarn";
59+ import rehypeKatex from "rehype-katex";
60+ import rehypePrettyCode from "rehype-pretty-code";
61+ @@ -143,7 +143,7 @@ async function compileMdx(source, {
62+ development: process.env.NODE_ENV === "development",
63+ remarkPlugins: [
64+ ...remarkPlugins || [],
65+ - remarkMermaid,
66+ + // remarkMermaid, // disabled to use rehype-mermaid and remove cytoscape from the bundle
67+ // should be before remarkRemoveImports because contains `import { Mermaid } from ...`
68+ [
69+ remarkNpm2Yarn,
0 commit comments