diff --git a/package-lock.json b/package-lock.json index 72891b173..4028fb901 100644 --- a/package-lock.json +++ b/package-lock.json @@ -43,7 +43,7 @@ "luxon": "^3.4.4", "make-fetch-happen": "^11.1.1", "mapbox-gl": "^3.2.0", - "marked": "^0.7.0", + "marked": "^14.1.3", "mime": "^2.5.2", "neat-csv": "^7.0.0", "negotiator": "^0.6.2", @@ -23233,14 +23233,15 @@ } }, "node_modules/marked": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/marked/-/marked-0.7.0.tgz", - "integrity": "sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==", + "version": "14.1.3", + "resolved": "https://registry.npmjs.org/marked/-/marked-14.1.3.tgz", + "integrity": "sha512-ZibJqTULGlt9g5k4VMARAktMAjXoVnnr+Y3aCqW1oDftcV4BA3UmrBifzXoZyenHRk75csiPu9iwsTj4VNBT0g==", + "license": "MIT", "bin": { - "marked": "bin/marked" + "marked": "bin/marked.js" }, "engines": { - "node": ">=0.10.0" + "node": ">= 18" } }, "node_modules/media-typer": { @@ -46889,9 +46890,9 @@ } }, "marked": { - "version": "0.7.0", - "resolved": "https://registry.npmjs.org/marked/-/marked-0.7.0.tgz", - "integrity": "sha512-c+yYdCZJQrsRjTPhUx7VKkApw9bwDkNbHUKo1ovgcfDjb2kc8rLuRbIFyXL5WOEUwzSSKo3IXpph2K6DqB/KZg==" + "version": "14.1.3", + "resolved": "https://registry.npmjs.org/marked/-/marked-14.1.3.tgz", + "integrity": "sha512-ZibJqTULGlt9g5k4VMARAktMAjXoVnnr+Y3aCqW1oDftcV4BA3UmrBifzXoZyenHRk75csiPu9iwsTj4VNBT0g==" }, "media-typer": { "version": "0.3.0", diff --git a/package.json b/package.json index 901c06c59..71a2d9494 100644 --- a/package.json +++ b/package.json @@ -63,7 +63,7 @@ "luxon": "^3.4.4", "make-fetch-happen": "^11.1.1", "mapbox-gl": "^3.2.0", - "marked": "^0.7.0", + "marked": "^14.1.3", "mime": "^2.5.2", "neat-csv": "^7.0.0", "negotiator": "^0.6.2", diff --git a/static-site/src/util/parseMarkdown.js b/static-site/src/util/parseMarkdown.js index e72baa9ce..c738c4d40 100644 --- a/static-site/src/util/parseMarkdown.js +++ b/static-site/src/util/parseMarkdown.js @@ -1,4 +1,4 @@ -import marked from "marked"; +import { marked } from "marked"; import sanitizeHtml from 'sanitize-html'; // All of these tags may not be necessary, this list was adopted from https://github.com/nextstrain/auspice/blob/master/src/util/parseMarkdown.js