Skip to content

Commit

Permalink
remove markdown-it-anchor
Browse files Browse the repository at this point in the history
  • Loading branch information
spaceninja committed Aug 11, 2023
1 parent 07141ae commit 8647eed
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
5 changes: 1 addition & 4 deletions .eleventy.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const markdownIt = require('markdown-it');
const markdownItAnchor = require('markdown-it-anchor');
const markdownItFootnote = require('markdown-it-footnote');

module.exports = function (eleventyConfig) {
Expand All @@ -15,9 +14,7 @@ module.exports = function (eleventyConfig) {
let options = {
html: true,
};
let markdownLibrary = markdownIt(options)
.use(markdownItAnchor)
.use(markdownItFootnote);
let markdownLibrary = markdownIt(options).use(markdownItFootnote);
eleventyConfig.setLibrary('md', markdownLibrary);

return {
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
},
"devDependencies": {
"@11ty/eleventy": "2.0.1",
"markdown-it-anchor": "8.6.7",
"markdown-it-footnote": "3.0.3",
"npm-run-all": "4.1.5",
"prettier": "3.0.1",
Expand Down
5 changes: 0 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1538,11 +1538,6 @@ map-obj@^4.1.0:
resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.3.0.tgz#9304f906e93faae70880da102a9f1df0ea8bb05a"
integrity sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==

markdown-it-anchor@8.6.7:
version "8.6.7"
resolved "https://registry.yarnpkg.com/markdown-it-anchor/-/markdown-it-anchor-8.6.7.tgz#ee6926daf3ad1ed5e4e3968b1740eef1c6399634"
integrity sha512-FlCHFwNnutLgVTflOYHPW2pPcl2AACqVzExlkGQNsi4CJgqOHN7YTgDd4LuhgN1BFO3TS0vLAruV1Td6dwWPJA==

markdown-it-footnote@3.0.3:
version "3.0.3"
resolved "https://registry.yarnpkg.com/markdown-it-footnote/-/markdown-it-footnote-3.0.3.tgz#e0e4c0d67390a4c5f0c75f73be605c7c190ca4d8"
Expand Down

0 comments on commit 8647eed

Please sign in to comment.