Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Update Ensu markdown dependencies

Manav Rathi755eaf67051d
diff --git a/web/apps/ensu/package.json b/web/apps/ensu/package.json
index 3f9ccbf1e2..f691a9309f 100644
--- a/web/apps/ensu/package.json
+++ b/web/apps/ensu/package.json
@@ -21,8 +21,8 @@
"ente-new": "*",
"ente-wasm": "*",
"idb": "8.0.3",
- "katex": "0.16.47",
- "react-markdown": "9.1.0",
+ "katex": "0.17.0",
+ "react-markdown": "10.1.0",
"react-virtuoso": "4.18.7",
"rehype-katex": "7.0.1",
"remark-gfm": "4.0.1",
diff --git a/web/apps/ensu/src/components/MarkdownRenderer.tsx b/web/apps/ensu/src/components/MarkdownRenderer.tsx
index 2d5b8cd696..29551ca380 100644
--- a/web/apps/ensu/src/components/MarkdownRenderer.tsx
+++ b/web/apps/ensu/src/components/MarkdownRenderer.tsx
@@ -140,18 +140,19 @@ export const MarkdownRenderer = ({
className,
}: MarkdownRendererProps) => {
return (
- <ReactMarkdown
- className={className}
- remarkPlugins={[remarkGfm, remarkMath]}
- rehypePlugins={[
- [
- rehypeKatex,
- { strict: false, throwOnError: false, trust: true },
- ],
- ]}
- components={{ pre: CodeBlock, a: ExternalLink }}
- >
- {content}
- </ReactMarkdown>
+ <div className={className}>
+ <ReactMarkdown
+ remarkPlugins={[remarkGfm, remarkMath]}
+ rehypePlugins={[
+ [
+ rehypeKatex,
+ { strict: false, throwOnError: false, trust: true },
+ ],
+ ]}
+ components={{ pre: CodeBlock, a: ExternalLink }}
+ >
+ {content}
+ </ReactMarkdown>
+ </div>
);
};
diff --git a/web/package-lock.json b/web/package-lock.json
index 4801e67184..7b8bbcefa8 100644
--- a/web/package-lock.json
+++ b/web/package-lock.json
@@ -180,8 +180,8 @@
"ente-new": "*",
"ente-wasm": "*",
"idb": "8.0.3",
- "katex": "0.16.47",
- "react-markdown": "9.1.0",
+ "katex": "0.17.0",
+ "react-markdown": "10.1.0",
"react-virtuoso": "4.18.7",
"rehype-katex": "7.0.1",
"remark-gfm": "4.0.1",
@@ -191,6 +191,22 @@
"ente-build-config": "*"
}
},
+ "apps/ensu/node_modules/katex": {
+ "version": "0.17.0",
+ "resolved": "https://registry.npmjs.org/katex/-/katex-0.17.0.tgz",
+ "integrity": "sha512-Vdw0ATsQ9V+LuegM/BTwQqV/6cTl5lbGcIrU+BCgLxyf6bo38ybOr372tuSIxir3CN720flu1meYR6XzNMwQnw==",
+ "funding": [
+ "https://opencollective.com/katex",
+ "https://github.com/sponsors/katex"
+ ],
+ "license": "MIT",
+ "dependencies": {
+ "commander": "^8.3.0"
+ },
+ "bin": {
+ "katex": "cli.js"
+ }
+ },
"apps/legacy": {
"version": "0.0.0",
"dependencies": {
@@ -3619,7 +3635,6 @@
"version": "19.2.16",
"resolved": "https://registry.npmjs.org/@types/react/-/react-19.2.16.tgz",
"integrity": "sha512-esJiCAnl0kfpNdE69f3So4WJUXy95dLZydX0KwK46riIHDzHM7O9Vtf9xCHW0PXIqvgqNrswl522kA/5yx+F4w==",
- "dev": true,
"license": "MIT",
"dependencies": {
"csstype": "^3.2.2"
@@ -9217,9 +9232,9 @@
}
},
"node_modules/react-markdown": {
- "version": "9.1.0",
- "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-9.1.0.tgz",
- "integrity": "sha512-xaijuJB0kzGiUdG7nc2MOMDUDBWPyGAjZtUrow9XxUeua8IqeP+VlIfAZ3bphpcLTnSZXz6z9jcVC/TCwbfgdw==",
+ "version": "10.1.0",
+ "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-10.1.0.tgz",
+ "integrity": "sha512-qKxVopLT/TyA6BX3Ue5NwabOsAzm0Q7kAPwq6L+wWDwisYs7R8vZ0nRXqq6rkueboxpkjvLGU9fWifiX/ZZFxQ==",
"license": "MIT",
"dependencies": {
"@types/hast": "^3.0.0",
@@ -10573,7 +10588,7 @@
"version": "6.0.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz",
"integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==",
- "dev": true,
+ "devOptional": true,
"license": "Apache-2.0",
"bin": {
"tsc": "bin/tsc",