meld
Version:
Meld: A template language for LLM prompts
2 lines (1 loc) • 890 B
JavaScript
const markdownIt = require("markdown-it"); const markdownItAnchor = require("markdown-it-anchor"); module.exports = function(eleventyConfig) { const markdownLib = markdownIt({ html: true, breaks: true, linkify: true }).use(markdownItAnchor); eleventyConfig.setLibrary("md", markdownLib); eleventyConfig.addPassthroughCopy("css"); eleventyConfig.addPassthroughCopy("js"); eleventyConfig.addPassthroughCopy("images"); eleventyConfig.addPassthroughCopy(".nojekyll"); eleventyConfig.addFilter("isActive", function(pageUrl, currentUrl) { return currentUrl.startsWith(pageUrl) ? "aria-current=\"page\"" : ""; }); eleventyConfig.addShortcode("year", () => `${new Date().getFullYear()}`); return { dir: { input: "src", output: "_site", includes: "_includes", data: "_data" }, templateFormats: ["md", "njk"], markdownTemplateEngine: false, htmlTemplateEngine: "njk", dataTemplateEngine: "njk" }; };