Skip to content

Commit

Permalink
Disable fuzzy linkification
Browse files Browse the repository at this point in the history
  • Loading branch information
hirasso committed Jul 8, 2024
1 parent 03e5c07 commit 25d2b70
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions eleventy.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@ const customMarkdownIt = markdownIt({
linkify: true
});

/**
* Prevents things like `rule.to` to be converted to links
*/
customMarkdownIt.linkify.set({
fuzzyLink: false
});

/**
* Anchors for headings lower then H1 (H2, H3, ...)
* @see https://github.com/valeriangalliat/markdown-it-anchor
Expand Down

0 comments on commit 25d2b70

Please sign in to comment.