UNPKG

@11ty/eleventy-plugin-syntaxhighlight

Version:

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

11 lines (8 loc) 284 B
const syntaxHighlight = require("../.eleventy.js"); module.exports = function(eleventyConfig) { eleventyConfig.addPlugin(syntaxHighlight, { // alwaysWrapLineHighlights: true preAttributes: { tabindex: 0 } }); eleventyConfig.setTemplateFormats("njk,liquid,md,css"); };