feat: add markdown-it library
This commit is contained in:
parent
c008d223f6
commit
29872edc10
4 changed files with 49 additions and 2 deletions
|
@ -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: "/",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue