diff --git a/docs/admin/src/widgets/genericPreviewTemplate.js b/docs/admin/src/widgets/genericPreviewTemplate.js index b156b99a07..6fe05d6946 100644 --- a/docs/admin/src/widgets/genericPreviewTemplate.js +++ b/docs/admin/src/widgets/genericPreviewTemplate.js @@ -7,7 +7,7 @@ import template from '../../../_includes/generic-content.html'; export default class Preview extends Component { componentDidMount() { liquidEngine.registerFilter('markdownify', (initial) => - marked(initial || ''), + marked.parse(initial || ''), ); } diff --git a/docs/admin/src/widgets/pagePreviewTemplate.js b/docs/admin/src/widgets/pagePreviewTemplate.js index f7b1ee999e..ffe8fc4239 100644 --- a/docs/admin/src/widgets/pagePreviewTemplate.js +++ b/docs/admin/src/widgets/pagePreviewTemplate.js @@ -27,7 +27,7 @@ export default class Preview extends Component { ); liquidEngine.registerFilter('xml_escape', (initial) => encode(initial)); liquidEngine.registerFilter('markdownify', (initial) => - marked(initial || ''), + marked.parse(initial || ''), ); liquidEngine.registerFilter( 'strip', diff --git a/npm-packages-offline-cache/marked-12.0.0.tgz b/npm-packages-offline-cache/marked-12.0.0.tgz new file mode 100644 index 0000000000..49f6c18b9e Binary files /dev/null and b/npm-packages-offline-cache/marked-12.0.0.tgz differ diff --git a/npm-packages-offline-cache/marked-4.2.12.tgz b/npm-packages-offline-cache/marked-4.2.12.tgz deleted file mode 100644 index 80113a1730..0000000000 Binary files a/npm-packages-offline-cache/marked-4.2.12.tgz and /dev/null differ diff --git a/package.json b/package.json index 72c0301e91..84952d0be8 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "anchor-js": "5.0.0", "html-entities": "2.4.0", "lunr": "2.3.9", - "marked": "4.2.12", + "marked": "12.0.0", "netlify-cms": "2.10.192", "normalize-css": "2.3.1", "react": "18.2.0", diff --git a/yarn.lock b/yarn.lock index 7fc5b88bd2..fb75b1cc87 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9042,10 +9042,10 @@ markdown-table@^2.0.0: dependencies: repeat-string "^1.0.0" -marked@4.2.12: - version "4.2.12" - resolved "https://registry.yarnpkg.com/marked/-/marked-4.2.12.tgz#d69a64e21d71b06250da995dcd065c11083bebb5" - integrity sha512-yr8hSKa3Fv4D3jdZmtMMPghgVt6TWbk86WQaWhDloQjRSQhMMYCAro7jP7VDJrjjdV8pxVxMssXS8B8Y5DZ5aw== +marked@12.0.0: + version "12.0.0" + resolved "https://registry.yarnpkg.com/marked/-/marked-12.0.0.tgz#051ea8c8c7f65148a63003df1499515a2c6de716" + integrity sha512-Vkwtq9rLqXryZnWaQc86+FHLC6tr/fycMfYAhiOIXkrNmeGAyhSxjqu0Rs1i0bBqw5u0S7+lV9fdH2ZSVaoa0w== marky@^1.2.0, marky@^1.2.2: version "1.2.5"