From fa627236820a0e72b34bed3c8387706062dd6b2d Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Wed, 17 Dec 2025 12:08:30 +0000 Subject: [PATCH] [workbench] Remove raw HTML support (#30396) GitOrigin-RevId: 9fb75c173be83771042a91804cad878152a6fc8f --- package-lock.json | 57 +-------------------------------------- services/web/package.json | 4 +-- 2 files changed, 2 insertions(+), 59 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5fe5373e63..1b7268848b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -45953,59 +45953,6 @@ "node": ">=6" } }, - "node_modules/rehype-external-links": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/rehype-external-links/-/rehype-external-links-3.0.0.tgz", - "integrity": "sha512-yp+e5N9V3C6bwBeAC4n796kc86M4gJCdlVhiMTxIrJG5UHDMh+PJANf9heqORJbt1nrCbDwIlAZKjANIaVBbvw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/hast": "^3.0.0", - "@ungap/structured-clone": "^1.0.0", - "hast-util-is-element": "^3.0.0", - "is-absolute-url": "^4.0.0", - "space-separated-tokens": "^2.0.0", - "unist-util-visit": "^5.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/unified" - } - }, - "node_modules/rehype-external-links/node_modules/@types/hast": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz", - "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@types/unist": "*" - } - }, - "node_modules/rehype-external-links/node_modules/is-absolute-url": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-absolute-url/-/is-absolute-url-4.0.1.tgz", - "integrity": "sha512-/51/TKE88Lmm7Gc4/8btclNXWS+g50wXhYJq8HWIBAGUBnoAdRu1aXeh364t/O7wXDAcTJDP8PNuNKWUDWie+A==", - "dev": true, - "license": "MIT", - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "url": "https://github.com/sponsors/sindresorhus" - } - }, - "node_modules/rehype-external-links/node_modules/space-separated-tokens": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz", - "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==", - "dev": true, - "license": "MIT", - "funding": { - "type": "github", - "url": "https://github.com/sponsors/wooorm" - } - }, "node_modules/rehype-harden": { "version": "1.1.6", "resolved": "https://registry.npmjs.org/rehype-harden/-/rehype-harden-1.1.6.tgz", @@ -56835,10 +56782,8 @@ "react-resizable-panels": "^2.1.1", "react-syntax-highlighter": "^15.6.6", "reflect-metadata": "^0.2.2", - "rehype-external-links": "^3.0.0", - "rehype-katex": "^7.0.1", + "rehype-harden": "^1.1.6", "rehype-sanitize": "^6.0.0", - "remark-math": "^6.0.0", "resolve-url-loader": "^5.0.0", "samlp": "^7.0.2", "sandboxed-module": "overleaf/node-sandboxed-module#cafa2d60f17ce75cc023e6f296eb8de79d92d35d", diff --git a/services/web/package.json b/services/web/package.json index f4665385e5..9b528e1a4a 100644 --- a/services/web/package.json +++ b/services/web/package.json @@ -384,10 +384,8 @@ "react-resizable-panels": "^2.1.1", "react-syntax-highlighter": "^15.6.6", "reflect-metadata": "^0.2.2", - "rehype-external-links": "^3.0.0", - "rehype-katex": "^7.0.1", + "rehype-harden": "^1.1.6", "rehype-sanitize": "^6.0.0", - "remark-math": "^6.0.0", "resolve-url-loader": "^5.0.0", "samlp": "^7.0.2", "sandboxed-module": "overleaf/node-sandboxed-module#cafa2d60f17ce75cc023e6f296eb8de79d92d35d",