Skip to content

Commit

Permalink
Merge pull request #194 from swup/chore/minor-optimizations
Browse files Browse the repository at this point in the history
  • Loading branch information
hirasso authored Jul 8, 2024
2 parents 1cbf4ff + 25d2b70 commit 71053b9
Show file tree
Hide file tree
Showing 3 changed files with 3,178 additions and 2,001 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
1 change: 0 additions & 1 deletion lib/eleventy-transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ function prepareInfoBlocks(html, file) {
label = label.replace(/[^a-z0-9\s]/gi, '').toLowerCase().trim();
const type = types[label];

console.log({ label, type });
if (!type) return;

const icon = doc.createElement('span');
Expand Down
Loading

0 comments on commit 71053b9

Please sign in to comment.