Remove DOMPurify

This commit is contained in:
brufdev
2025-07-05 00:36:46 +01:00
parent f06ac03c3c
commit 2d8252747a
3 changed files with 1 additions and 22 deletions
-17
View File
@@ -18,7 +18,6 @@
"@tiptap/extension-task-list": "^2.12.0",
"@tiptap/pm": "^2.12.0",
"@tiptap/starter-kit": "^2.12.0",
"dompurify": "^3.2.5",
"lowlight": "^3.3.0",
"marked": "^15.0.11",
"turndown": "^7.2.0"
@@ -1649,13 +1648,6 @@
"integrity": "sha512-RGdgjQUZba5p6QEFAVx2OGb8rQDL/cPRG7GiedRzMcJ1tYnUANBncjbSB1NRGwbvjcPeikRABz2nshyPk1bhWg==",
"license": "MIT"
},
"node_modules/@types/trusted-types": {
"version": "2.0.7",
"resolved": "https://registry.npmjs.org/@types/trusted-types/-/trusted-types-2.0.7.tgz",
"integrity": "sha512-ScaPdn1dQczgbl0QFTeTOmVHFULt394XJgOQNoyVhZ6r2vLnMLJfBPd53SB52T/3G36VI1/g2MZaX0cwDuXsfw==",
"license": "MIT",
"optional": true
},
"node_modules/@types/unist": {
"version": "3.0.3",
"resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz",
@@ -1896,15 +1888,6 @@
"url": "https://github.com/sponsors/wooorm"
}
},
"node_modules/dompurify": {
"version": "3.2.6",
"resolved": "https://registry.npmjs.org/dompurify/-/dompurify-3.2.6.tgz",
"integrity": "sha512-/2GogDQlohXPZe6D6NOgQvXLPSYBqIWMnZ8zzOhn09REE4eyAzb+Hed3jhoM9OkuaJ8P6ZGTTVWQKAi8ieIzfQ==",
"license": "(MPL-2.0 OR Apache-2.0)",
"optionalDependencies": {
"@types/trusted-types": "^2.0.7"
}
},
"node_modules/dunder-proto": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/dunder-proto/-/dunder-proto-1.0.1.tgz",
-1
View File
@@ -31,7 +31,6 @@
"@tiptap/extension-task-list": "^2.12.0",
"@tiptap/pm": "^2.12.0",
"@tiptap/starter-kit": "^2.12.0",
"dompurify": "^3.2.5",
"lowlight": "^3.3.0",
"marked": "^15.0.11",
"turndown": "^7.2.0"
+1 -4
View File
@@ -7,7 +7,6 @@ import TaskList from '@tiptap/extension-task-list';
import Table from '@tiptap/extension-table';
import TableRow from '@tiptap/extension-table-row';
import { common, createLowlight } from 'lowlight';
import DOMPurify from 'dompurify';
import { CustomCodeBlockLowlight } from './tiptap/extension-custom-code-block-low-light';
import { CustomTableHeader } from './tiptap/extension-custom-table-header';
@@ -46,9 +45,7 @@ window.setupEditor = function (options) {
}
if (options.content) {
content = DOMPurify.sanitize(
markedService.parse(options.content),
);
content = markedService.parse(options.content);
}
return {