Update marked to latest

This commit is contained in:
Nick O'Leary 2022-01-18 09:20:52 +00:00
parent 310a279aaf
commit a2e0074061
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9
2 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@
"i18next-http-backend": "1.3.1",
"jquery-i18next": "1.2.1",
"jsdoc-nr-template": "github:node-red/jsdoc-nr-template",
"marked": "3.0.7",
"marked": "4.0.10",
"minami": "1.2.3",
"mocha": "9.1.3",
"node-red-node-test-helper": "^0.2.7",

View File

@ -109,7 +109,7 @@ RED.utils = (function() {
window._marked.use({extensions: [descriptionList, description] } );
function renderMarkdown(txt) {
var rendered = _marked(txt);
var rendered = _marked.parse(txt);
var cleaned = DOMPurify.sanitize(rendered, {SAFE_FOR_JQUERY: true})
return cleaned;
}