Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
renderer.code = function (code, language) {
return '<pre>' +
'<code class="hljs lang-' + language + '">' +
hljs.highlightAuto(code).value +
'</code>' +
'</pre>';
};
html = ejs.render(template, {
highlight(code, lang) {
if (!lang) {
return hljs.highlightAuto(code).value;
}
return hljs.highlight(lang, code).value;
},
});
highlight(code, lang) {
if (!lang) {
return hljs.highlightAuto(code).value;
}
return hljs.highlight(lang, code).value;
},
});
highlight(code, lang) {
if (!lang) {
return hljs.highlightAuto(code).value;
}
return hljs.highlight(lang, code).value;
},
});
highlight(code, lang) {
if (!lang) {
return hljs.highlightAuto(code).value;
}
return hljs.highlight(lang, code).value;
},
});