@@ -9,6 +9,28 @@ index 239d72f5921e2d1b7359e569ae5b74c12d7c9d8a..ebeb619da1e3ccb7722e9388c92c1e21
9
9
import { forwardRef } from "react";
10
10
const Image = forwardRef((props, ref) => {
11
11
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,
12
34
diff --git a/dist/client/normalize-pages.js b/dist/client/normalize-pages.js
13
35
index 15afee0c1de26f47d781f423e5ec32e33ad925d3..fefd01736bd2b778df275bf50ac48384d5f63845 100644
14
36
--- a/dist/client/normalize-pages.js
@@ -24,3 +46,24 @@ index 15afee0c1de26f47d781f423e5ec32e33ad925d3..fefd01736bd2b778df275bf50ac48384
24
46
if (!isValid) {
25
47
throw new Error(
26
48
`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