diff --git a/README.md b/README.md index ec41d080..b2679080 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ Source code of my personal and hobby website, [Leilukin's Hub](https://leilukin. - [eleventy-plugin-embed-everything](https://www.npmjs.com/package/eleventy-plugin-embed-everything) - [markdown-it-anchor](https://www.npmjs.com/package/markdown-it-anchor) - [markdown-it-attrs](https://www.npmjs.com/package/markdown-it-attrs) +- [markdown-it-bracketed-spans](https://www.npmjs.com/package/markdown-it-bracketed-spans) - [Table of Contents (nesting) Eleventy Plugin](https://www.npmjs.com/package/eleventy-plugin-nesting-toc) ## Self-hosted Assets diff --git a/bun.lockb b/bun.lockb index c96e52fa..5b2fb646 100644 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/eleventy.config.js b/eleventy.config.js index ec71fffb..8ed97f38 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -80,7 +80,8 @@ module.exports = function (eleventyConfig) { html: true, }) .use(markdownItAnchor, markdownItAnchorOptions) - .use(require("markdown-it-attrs")); + .use(require("markdown-it-attrs")) + .use(require('markdown-it-bracketed-spans')); /* This is the part that tells 11ty to swap to our custom config */ eleventyConfig.setLibrary("md", markdownLibrary); diff --git a/package.json b/package.json index 4ee0fbbd..47e1503e 100644 --- a/package.json +++ b/package.json @@ -22,6 +22,7 @@ "install": "^0.13.0", "markdown-it-anchor": "^8.6.7", "markdown-it-attrs": "^4.1.6", + "markdown-it-bracketed-spans": "^1.0.1", "slugify": "^1.6.6" } } \ No newline at end of file