Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: minor optimizations #194

Merged
merged 3 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading