mirror of
https://github.com/brufdev/many-notes.git
synced 2026-05-12 21:30:30 -05:00
Remove DOMPurify
This commit is contained in:
Generated
-17
@@ -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",
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user