Combine markdown-it linkify setting
This commit is contained in:
parent
335d421a4c
commit
76ce60a3f0
@ -54,6 +54,7 @@ export default function(eleventyConfig) {
|
|||||||
html: true,
|
html: true,
|
||||||
linkify: true,
|
linkify: true,
|
||||||
})
|
})
|
||||||
|
.set({ fuzzyLink: false })
|
||||||
.use(markdownItAnchor, markdownItAnchorOptions)
|
.use(markdownItAnchor, markdownItAnchorOptions)
|
||||||
.use(markdownItAttribution)
|
.use(markdownItAttribution)
|
||||||
.use(markdownItAttrs)
|
.use(markdownItAttrs)
|
||||||
@ -61,9 +62,6 @@ export default function(eleventyConfig) {
|
|||||||
.use(markdownItDefList)
|
.use(markdownItDefList)
|
||||||
.use(markdownItFootnote);
|
.use(markdownItFootnote);
|
||||||
|
|
||||||
// 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 = () => (
|
||||||
'<hr class="footnotes-sep">\n' +
|
'<hr class="footnotes-sep">\n' +
|
||||||
@ -103,4 +101,4 @@ export default function(eleventyConfig) {
|
|||||||
|
|
||||||
/* This is the part that tells 11ty to swap to our custom config */
|
/* This is the part that tells 11ty to swap to our custom config */
|
||||||
eleventyConfig.setLibrary("md", markdownLibrary);
|
eleventyConfig.setLibrary("md", markdownLibrary);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user