feat: add markdown-it library

This commit is contained in:
Devin Haska 2024-01-31 11:41:17 -08:00
parent c008d223f6
commit 29872edc10
4 changed files with 49 additions and 2 deletions

View file

@ -1,6 +1,7 @@
const markdown = require("./config/plugins/markdown.js");
module.exports = (eleventyConfig) => {
eleventyConfig.addWatchTarget("./src/assets");
// --------------------- Custom Template Languages ---------------------
eleventyConfig.addPlugin(
require("./config/template-languages/css-config.js"),
@ -11,6 +12,9 @@ module.exports = (eleventyConfig) => {
eleventyConfig.addPassthroughCopy(path),
);
// --------------------- Markdown -----------------------
eleventyConfig.setLibrary("md", markdown);
return {
// Optional (default is set): If your site deploys to a subdirectory, change `pathPrefix`, for example with with GitHub pages
pathPrefix: "/",