This commit is contained in:
2020-08-26 23:29:34 +00:00
parent b0ebc41618
commit a85deab090
3 changed files with 35 additions and 21 deletions

View File

@@ -3,7 +3,17 @@ function ayRegisterHelpers() {
return aString.toUpperCase();
});
Handlebars.registerHelper("aymarkdown",function(astring){
return marked(astring, { breaks: true })
})
Handlebars.registerHelper("aymarkdown", function (astring) {
return marked(astring, { breaks: true });
});
}
function ayPreRender(theReportData) {
if (reportPrerender != null) {
return reportPreRender(theReportData);
}else{
return theReportData;
}
}