From 2b37c54d7cd30f758ed6496c601a5b74cbaef6e4 Mon Sep 17 00:00:00 2001 From: Konnor Rogers Date: Mon, 2 Jun 2025 10:23:47 -0400 Subject: [PATCH] fix code blocks (#1009) --- packages/webawesome/docs/.eleventy.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/webawesome/docs/.eleventy.js b/packages/webawesome/docs/.eleventy.js index e35218ac9..5bdfc377a 100644 --- a/packages/webawesome/docs/.eleventy.js +++ b/packages/webawesome/docs/.eleventy.js @@ -125,7 +125,7 @@ export default async function (eleventyConfig) { eleventyConfig.addPlugin(currentLink()); // Add code examples for `` blocks - eleventyConfig.addPlugin(codeExamplesPlugin); + eleventyConfig.addPlugin(codeExamplesPlugin()); // Highlight code blocks with Prism eleventyConfig.addPlugin(highlightCodePlugin()); @@ -136,6 +136,10 @@ export default async function (eleventyConfig) { // Various text replacements eleventyConfig.addPlugin( replaceTextPlugin([ + { + replace: /\[version\]/gs, + replaceWith: packageData.version, + }, // Replace [issue:1234] with a link to the issue on GitHub { replace: /\[pr:([0-9]+)\]/gs,