Install markdown-it-bracketed-spans plugin

This commit is contained in:
Helen Chong 2024-05-06 20:15:51 +08:00
parent c493facdb8
commit 75b3a86e45
4 changed files with 4 additions and 1 deletions

View File

@ -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

BIN
bun.lockb

Binary file not shown.

View File

@ -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);

View File

@ -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"
}
}