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

Fixed the colon issue #528

Merged
merged 1 commit into from
Jan 5, 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
52 changes: 30 additions & 22 deletions .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,25 @@ const markdownItAnchor = require('markdown-it-anchor');
const markdownItAttrs = require('markdown-it-attrs');
const { EleventyHtmlBasePlugin } = require('@11ty/eleventy');
const { stripHtml } = require('string-strip-html');
const { dynamicImport } = require('tsimportlib');

module.exports = function(eleventyConfig) {
module.exports = function (eleventyConfig) {

let markdownItOptions = {
html: true, // you can include HTML tags
};

eleventyConfig.setLibrary(
"md",
markdownIt(markdownItOptions).use(markdownItAnchor).use(markdownItAttrs)
);
const md = markdownIt(markdownItOptions).use(markdownItAttrs);
eleventyConfig.setLibrary("md", md);

dynamicImport('@sindresorhus/slugify', module)
.then((module) => {
const slugify = module.default;
md.use(markdownItAnchor, { slugify });
})
.catch((err) => {
console.error('Error importing slugify:', err);
});

const slugifyFilter = eleventyConfig.javascriptFunctions.slugify;

Expand All @@ -40,20 +48,20 @@ module.exports = function(eleventyConfig) {
.toFormat("yyyy'-'MM'-'dd");
});

eleventyConfig.addPassthroughCopy({ "./src/_docs" : "docs" });
eleventyConfig.addPassthroughCopy({ "./src/_images" : "img" });
eleventyConfig.addPassthroughCopy({ "./src/CNAME" : "CNAME" });

return {
dir: {
input : "src",
output : "_site",
includes : "_includes",
data : "_data"
},
templateFormats : ["html", "md", "njk", "css"],
htmlTemplateEngine : "njk",
markdownTemplate : "njk",
setUseGitIgnore : false
};
}
eleventyConfig.addPassthroughCopy({ "./src/_docs" : "docs" });
eleventyConfig.addPassthroughCopy({ "./src/_images" : "img" });
eleventyConfig.addPassthroughCopy({ "./src/CNAME" : "CNAME" });

return {
dir: {
input : "src",
output : "_site",
includes : "_includes",
data : "_data"
},
templateFormats : ["html", "md", "njk", "css"],
htmlTemplateEngine : "njk",
markdownTemplate : "njk",
setUseGitIgnore : false
};
};
13 changes: 12 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"esm": "^3.2.25",
"prompt-sync": "^4.2.0",
"remark": "^15.0.1",
"remark-html": "^16.0.1"
"remark-html": "^16.0.1",
"tsimportlib": "^0.0.5"
}
}
2 changes: 1 addition & 1 deletion src/pages/en/accessibility-testing-101.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Please note that some of the accessibility testing tools listed will require adm

## Building your toolset

## Tool: WAVE Browser Extensions {#tool-wave-browser-extensions}
## Tool: WAVE Browser Extensions

WAVE for Chrome, Firefox, and Edge extensions allows you to evaluate web content for accessibility issues directly within your browser. Because the extension runs entirely within your web browser, no information is sent to the WAVE server.

Expand Down