From 1be6346bde9ebe4afc23d7feaf0370817ad90f15 Mon Sep 17 00:00:00 2001 From: Zach Leatherman Date: Wed, 28 Jul 2021 09:05:01 -0500 Subject: [PATCH] Updates deps, including new major version of markdown-it-anchor. --- .eleventy.js | 10 +++++++--- package.json | 10 +++++----- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/.eleventy.js b/.eleventy.js index eb21532..16841f2 100644 --- a/.eleventy.js +++ b/.eleventy.js @@ -70,9 +70,13 @@ module.exports = function(eleventyConfig) { breaks: true, linkify: true }).use(markdownItAnchor, { - permalink: true, - permalinkClass: "direct-link", - permalinkSymbol: "#" + permalink: markdownItAnchor.permalink.ariaHidden({ + placement: "after", + class: "direct-link", + symbol: "#", + level: [1,2,3,4], + }), + slugify: eleventyConfig.getFilter("slug") }); eleventyConfig.setLibrary("md", markdownLibrary); diff --git a/package.json b/package.json index d4b3df8..37c8dfb 100644 --- a/package.json +++ b/package.json @@ -25,11 +25,11 @@ "homepage": "https://github.com/11ty/eleventy-base-blog#readme", "devDependencies": { "@11ty/eleventy": "^0.12.1", - "@11ty/eleventy-navigation": "^0.1.6", + "@11ty/eleventy-navigation": "^0.3.2", "@11ty/eleventy-plugin-rss": "^1.1.1", - "@11ty/eleventy-plugin-syntaxhighlight": "^3.1.0", - "luxon": "^1.26.0", - "markdown-it": "^12.0.4", - "markdown-it-anchor": "^7.1.0" + "@11ty/eleventy-plugin-syntaxhighlight": "^3.1.2", + "luxon": "^2.0.1", + "markdown-it": "^12.1.0", + "markdown-it-anchor": "^8.1.2" } }