19 lines
432 B
JavaScript
19 lines
432 B
JavaScript
|
const markdownIt = require("markdown-it");
|
||
|
const markdownItAnchor = require("markdown-it-anchor");
|
||
|
|
||
|
module.exports = function(eleventyConfig) {
|
||
|
eleventyConfig.addPassthroughCopy({ "static": "/" })
|
||
|
|
||
|
eleventyConfig.setLibrary("md", markdownIt({
|
||
|
html: true
|
||
|
}).use(markdownItAnchor, {
|
||
|
level: 2
|
||
|
}))
|
||
|
|
||
|
return {
|
||
|
passthroughFileCopy: true,
|
||
|
dir: {
|
||
|
input: "src"
|
||
|
}
|
||
|
}
|
||
|
}
|