Configure linkify-it to disable fuzzy links
This commit is contained in:
parent
5c4ef54e43
commit
5a422f6061
|
@ -6,7 +6,6 @@ const embedEverything = require("eleventy-plugin-embed-everything");
|
||||||
|
|
||||||
// Configure slug filter
|
// Configure slug filter
|
||||||
const slugify = require("slugify");
|
const slugify = require("slugify");
|
||||||
|
|
||||||
// Configure markdown-it plugins
|
// Configure markdown-it plugins
|
||||||
const markdownIt = require("markdown-it");
|
const markdownIt = require("markdown-it");
|
||||||
const markdownItAnchor = require("markdown-it-anchor");
|
const markdownItAnchor = require("markdown-it-anchor");
|
||||||
|
@ -75,6 +74,9 @@ module.exports = function (eleventyConfig) {
|
||||||
.use(require("markdown-it-deflist"))
|
.use(require("markdown-it-deflist"))
|
||||||
.use(require('markdown-it-footnote'));
|
.use(require('markdown-it-footnote'));
|
||||||
|
|
||||||
|
// Configure linkify
|
||||||
|
markdownLibrary.linkify.set({ fuzzyLink: false });
|
||||||
|
|
||||||
// Configure markdown-it-footnote
|
// Configure markdown-it-footnote
|
||||||
markdownLibrary.renderer.rules.footnote_block_open = () => (
|
markdownLibrary.renderer.rules.footnote_block_open = () => (
|
||||||
'<footer class="footnotes">\n' +
|
'<footer class="footnotes">\n' +
|
||||||
|
|
Loading…
Reference in New Issue