Skip to content

Commit

Permalink
parse markdown definition lists
Browse files Browse the repository at this point in the history
  • Loading branch information
alifeee committed Feb 22, 2025
1 parent cba3dd1 commit e11d0ea
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
5 changes: 4 additions & 1 deletion notes/_build/.eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import handlebarsPlugin from "@11ty/eleventy-plugin-handlebars";
import { EleventyHtmlBasePlugin } from "@11ty/eleventy";
import markdownIt from "markdown-it";
import markdownItAnchor from "markdown-it-anchor";
import markdownIt_deflist from "markdown-it-deflist";
import slugify from "./node_modules/@sindresorhus/slugify/index.js";
import memoize from "memoize";

Expand Down Expand Up @@ -32,7 +33,9 @@ export default function (eleventyConfig) {
"../../prism-components/*": "/prism-components/",
});

const markdownLib = markdownIt({ html: true }).use(markdownItAnchor);
const markdownLib = markdownIt({ html: true })
.use(markdownItAnchor)
.use(markdownIt_deflist);
eleventyConfig.setLibrary("md", markdownLib);

eleventyConfig.addPlugin(EleventyHtmlBasePlugin);
Expand Down
7 changes: 7 additions & 0 deletions notes/_build/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions notes/_build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
},
"dependencies": {
"@11ty/eleventy-plugin-handlebars": "^1.0.0",
"markdown-it-deflist": "^3.0.0",
"memoize": "^10.0.0"
},
"type": "module"
Expand Down

0 comments on commit e11d0ea

Please sign in to comment.