diff --git a/package-lock.json b/package-lock.json index 072d8b188..f8923ef04 100644 --- a/package-lock.json +++ b/package-lock.json @@ -59,7 +59,7 @@ "linspace": "^1.0.0", "lodash": "^4.17.21", "lodash-webpack-plugin": "^0.11.6", - "marked": "^0.7.0", + "marked": "^4.0.10", "mousetrap": "^1.6.2", "null-loader": "^4.0.0", "outer-product": "0.0.4", @@ -10044,14 +10044,14 @@ } }, "node_modules/marked": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/marked/-/marked-0.7.0.tgz", - "integrity": "sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==", + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/marked/-/marked-4.0.10.tgz", + "integrity": "sha512-+QvuFj0nGgO970fySghXGmuw+Fd0gD2x3+MqCWLIPf5oxdv1Ka6b2q+z9RP01P/IaKPMEramy+7cNy/Lw8c3hw==", "bin": { - "marked": "bin/marked" + "marked": "bin/marked.js" }, "engines": { - "node": ">=0.10.0" + "node": ">= 12" } }, "node_modules/media-typer": { @@ -20710,9 +20710,9 @@ } }, "marked": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/marked/-/marked-0.7.0.tgz", - "integrity": "sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==" + "version": "4.0.10", + "resolved": "https://registry.npmjs.org/marked/-/marked-4.0.10.tgz", + "integrity": "sha512-+QvuFj0nGgO970fySghXGmuw+Fd0gD2x3+MqCWLIPf5oxdv1Ka6b2q+z9RP01P/IaKPMEramy+7cNy/Lw8c3hw==" }, "media-typer": { "version": "0.3.0", diff --git a/package.json b/package.json index ca1fb35c2..fafc12d95 100644 --- a/package.json +++ b/package.json @@ -83,7 +83,7 @@ "linspace": "^1.0.0", "lodash": "^4.17.21", "lodash-webpack-plugin": "^0.11.6", - "marked": "^0.7.0", + "marked": "^4.0.10", "mousetrap": "^1.6.2", "null-loader": "^4.0.0", "outer-product": "0.0.4", diff --git a/src/util/parseMarkdown.js b/src/util/parseMarkdown.js index 9f8fcd53f..37f0821b6 100644 --- a/src/util/parseMarkdown.js +++ b/src/util/parseMarkdown.js @@ -1,4 +1,4 @@ -import marked from "marked"; +import { marked } from "marked"; import dompurify from "dompurify"; dompurify.addHook("afterSanitizeAttributes", (node) => {