Configure linkify-it to disable fuzzy links

This commit is contained in:
Helen Chong 2024-06-24 13:41:39 +08:00
parent 5c4ef54e43
commit 5a422f6061
1 changed files with 3 additions and 1 deletions

View File

@ -6,7 +6,6 @@ const embedEverything = require("eleventy-plugin-embed-everything");
// Configure slug filter
const slugify = require("slugify");
// Configure markdown-it plugins
const markdownIt = require("markdown-it");
const markdownItAnchor = require("markdown-it-anchor");
@ -75,6 +74,9 @@ module.exports = function (eleventyConfig) {
.use(require("markdown-it-deflist"))
.use(require('markdown-it-footnote'));
// Configure linkify
markdownLibrary.linkify.set({ fuzzyLink: false });
// Configure markdown-it-footnote
markdownLibrary.renderer.rules.footnote_block_open = () => (
'<footer class="footnotes">\n' +