fix: update npm packages and fix markdown with dompurify

This commit is contained in:
dni 2026-08-10 08:51:57 +02:00
parent 9495854d5c
commit 4bcde634c5
3 changed files with 401 additions and 326 deletions

View file

@ -321,7 +321,7 @@ window._lnbitsUtils = {
const converter = new showdown.Converter()
converter.setFlavor('github')
converter.setOption('simpleLineBreaks', true)
return converter.makeHtml(text)
return DOMPurify.sanitize(converter.makeHtml(text))
},
_extI18nDirs: new Set(),
_extI18nLoaded: {},

722
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -25,6 +25,7 @@
"dependencies": {
"axios": "^1.18.0",
"chart.js": "^4.5.1",
"dompurify": "^3.4.12",
"moment": "^2.30.1",
"nostr-tools": "^2.23.3",
"qrcode.vue": "^3.9.0",
@ -51,6 +52,7 @@
"./node_modules/chart.js/dist/chart.umd.js",
"./node_modules/quasar/dist/quasar.css",
"./node_modules/showdown/dist/showdown.js",
"./node_modules/dompurify/dist/purify.js",
"./node_modules/nostr-tools/lib/nostr.bundle.js"
],
"bundle": {
@ -67,6 +69,7 @@
"vendor/qrcode.vue.browser.js",
"vendor/chart.umd.js",
"vendor/showdown.js",
"vendor/purify.js",
"vendor/nostr.bundle.js",
"i18n/i18n.js",
"i18n/de.js",