feat: add syntax highlighting for code blocks
All checks were successful
/ build-node (push) Successful in 50s
/ publish (push) Successful in 26s

This commit is contained in:
2024-09-21 16:05:02 +10:00
parent 78a1c3d8d2
commit f5c891910e
4 changed files with 26 additions and 1 deletions

View File

@ -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,