We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 179cb56 commit b48f80dCopy full SHA for b48f80d
site/.eleventy.js
@@ -1,7 +1,11 @@
1
const markdownIt = require('markdown-it');
2
const htmlminifier = require('html-minifier');
3
+const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
4
5
module.exports = function(eleventyConfig) {
6
+ eleventyConfig.addPlugin(syntaxHighlight, {
7
+ templateFormants: ["md", "js", "html"]
8
+ });
9
eleventyConfig.addPassthroughCopy("src/assets");
10
eleventyConfig.addPassthroughCopy("src/styles");
11
eleventyConfig.addPassthroughCopy("src/script.js");
site/package.json
@@ -12,6 +12,7 @@
12
},
13
"license": "Apache-2.0",
14
"dependencies": {
15
+ "@11ty/eleventy-plugin-syntaxhighlight": "^3.0.1",
16
"html-minifier": "^4.0.0"
17
}
-}
18
+}
0 commit comments