[notes] ...
All checks were successful
Deploy to S3 / deploy (push) Successful in 46s

This commit is contained in:
2026-04-09 02:12:21 +00:00
parent b9afbc231a
commit 1fcc199c1a
9 changed files with 150 additions and 5 deletions

View File

@@ -63,6 +63,14 @@ module.exports = function (eleventyConfig) {
.sort((a, b) => b.date - a.date);
});
eleventyConfig.addFilter("inlineMarkdown", function (text) {
return text.replace(/~~(.+?)~~/g, "<del>$1</del>");
});
eleventyConfig.addFilter("stripMarkdown", function (text) {
return text.replace(/~~(.+?)~~/g, "$1");
});
eleventyConfig.addFilter("year", function (date) {
return new Date(date).getFullYear();
});