Skip to content

Commit 2b37c54

Browse files
authored
fix code blocks (#1009)
1 parent 35b61e5 commit 2b37c54

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/webawesome/docs/.eleventy.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export default async function (eleventyConfig) {
125125
eleventyConfig.addPlugin(currentLink());
126126

127127
// Add code examples for `<code class="example">` blocks
128-
eleventyConfig.addPlugin(codeExamplesPlugin);
128+
eleventyConfig.addPlugin(codeExamplesPlugin());
129129

130130
// Highlight code blocks with Prism
131131
eleventyConfig.addPlugin(highlightCodePlugin());
@@ -136,6 +136,10 @@ export default async function (eleventyConfig) {
136136
// Various text replacements
137137
eleventyConfig.addPlugin(
138138
replaceTextPlugin([
139+
{
140+
replace: /\[version\]/gs,
141+
replaceWith: packageData.version,
142+
},
139143
// Replace [issue:1234] with a link to the issue on GitHub
140144
{
141145
replace: /\[pr:([0-9]+)\]/gs,

0 commit comments

Comments
 (0)