UNPKG

@11ty/eleventy-plugin-syntaxhighlight

Version:

Prism.js based syntax highlighting for Markdown, Liquid, Nunjucks, WebC, and 11ty.js templates.

6 lines (5 loc) 183 B
module.exports = function(data) { let result1 = this.highlight("diff", "-var test;"); let result2 = this.highlight("diff-js", "-var test;"); return result1 + "\n" + result2; };