diff --git a/eleventy.config.js b/eleventy.config.js index 8315b69..6dcfb53 100644 --- a/eleventy.config.js +++ b/eleventy.config.js @@ -217,6 +217,14 @@ export default function (eleventyConfig) { }, }); + // Wrap elements in for responsive tables + eleventyConfig.addTransform("table-saw-wrap", function (content, outputPath) { + if (outputPath && outputPath.endsWith(".html")) { + return content.replace(/)/g, "/g, "
"); + } + return content; + }); + // HTML minification — only during initial build, skip during watch rebuilds eleventyConfig.addTransform("htmlmin", async function (content, outputPath) { if (outputPath && outputPath.endsWith(".html") && process.env.ELEVENTY_RUN_MODE === "build") {