update marked

This commit is contained in:
Caesar Schinas 2024-08-04 22:56:07 +01:00
parent 07915b8804
commit b06561ad13
No known key found for this signature in database
GPG key ID: AE9108461BEA5ACF
3 changed files with 8 additions and 8 deletions

View file

@ -52,7 +52,7 @@
"gitea-js": "^1.22.0",
"husky": "^9.1.4",
"lint-staged": "^15.2.8",
"marked": "^7.0.5",
"marked": "^13.0.3",
"prettier": "^3.3.3",
"prettier-plugin-astro": "^0.14.1",
"rehype-autolink-headings": "^7.1.0",

12
pnpm-lock.yaml generated
View file

@ -81,8 +81,8 @@ importers:
specifier: ^15.2.8
version: 15.2.8
marked:
specifier: ^7.0.5
version: 7.0.5
specifier: ^13.0.3
version: 13.0.3
prettier:
specifier: ^3.3.3
version: 3.3.3
@ -2246,9 +2246,9 @@ packages:
markdown-table@3.0.3:
resolution: {integrity: sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw==}
marked@7.0.5:
resolution: {integrity: sha512-lwNAFTfXgqpt/XvK17a/8wY9/q6fcSPZT1aP6QW0u74VwaJF/Z9KbRcX23sWE4tODM+AolJNcUtErTkgOeFP/Q==}
engines: {node: '>= 16'}
marked@13.0.3:
resolution: {integrity: sha512-rqRix3/TWzE9rIoFGIn8JmsVfhiuC8VIQ8IdX5TfzmeBucdY05/0UlzKaw0eVtpcN/OdVFpBk7CjKGo9iHJ/zA==}
engines: {node: '>= 18'}
hasBin: true
mdast-util-definitions@6.0.0:
@ -6059,7 +6059,7 @@ snapshots:
markdown-table@3.0.3: {}
marked@7.0.5: {}
marked@13.0.3: {}
mdast-util-definitions@6.0.0:
dependencies:

View file

@ -20,7 +20,7 @@ export const GET = async () => {
title: post.data.title,
description: post.data.excerpt,
pubDate: post.data.publishDate,
content: sanitizeHtml(marked.parse(post.body)),
content: sanitizeHtml(marked.parse(post.body) as string),
})),
stylesheet: import.meta.env.BASE_URL + 'pretty-feed-v3.xsl',