Updated marked.js for back end ayWiki helper in report generator

This commit is contained in:
2022-02-14 20:50:24 +00:00
parent 53f4637dd1
commit 84516b4b90
2 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@@ -51,8 +51,9 @@ function ayRegisterHelpers() {
let src = ayValue.replace(/\[ATTACH:(.*)\]/g, function (match, p1) {
return attachmentDownloadUrl(p1);
});
return new Handlebars.SafeString(
DOMPurify.sanitize(marked(src, { breaks: true }))
DOMPurify.sanitize(marked.parse(src, { breaks: true }))
);
});