feat: add syntax highlighting for code blocks
This commit is contained in:
@ -1,6 +1,8 @@
|
||||
const blogTools = require("eleventy-plugin-blog-tools");
|
||||
const markdownIt = require("markdown-it");
|
||||
const markdownItAttrs = require("markdown-it-attrs");
|
||||
const syntaxHighlight = require("@11ty/eleventy-plugin-syntaxhighlight");
|
||||
|
||||
|
||||
// Import prior to `module.exports` within `.eleventy.js`
|
||||
const { DateTime } = require("luxon");
|
||||
@ -40,7 +42,7 @@ module.exports = function(eleventyConfig) {
|
||||
});
|
||||
|
||||
eleventyConfig.addPlugin(blogTools);
|
||||
|
||||
eleventyConfig.addPlugin(syntaxHighlight);
|
||||
|
||||
return {
|
||||
passthroughFileCopy: true,
|
||||
|
Reference in New Issue
Block a user