blog/eleventy.config.js

19 lines
444 B
JavaScript
Raw Permalink Normal View History

import markdownIt from "markdown-it";
import mkgh from "markdown-it-github-alerts";
export default function(eleventyConfig) {
const options = {
html: true,
breaks: true,
linkify: true,
};
const md = markdownIt(options);
md.use(mkgh);
eleventyConfig.setLibrary("md", md);
eleventyConfig.addPassthroughCopy("src/fonts/typewriter.ttf");
eleventyConfig.addPassthroughCopy("src/post.css");
};