Updated marked.js for back end ayWiki helper in report generator
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -51,8 +51,9 @@ function ayRegisterHelpers() {
|
|||||||
let src = ayValue.replace(/\[ATTACH:(.*)\]/g, function (match, p1) {
|
let src = ayValue.replace(/\[ATTACH:(.*)\]/g, function (match, p1) {
|
||||||
return attachmentDownloadUrl(p1);
|
return attachmentDownloadUrl(p1);
|
||||||
});
|
});
|
||||||
|
|
||||||
return new Handlebars.SafeString(
|
return new Handlebars.SafeString(
|
||||||
DOMPurify.sanitize(marked(src, { breaks: true }))
|
DOMPurify.sanitize(marked.parse(src, { breaks: true }))
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user