File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ export default async function (eleventyConfig) {
125
125
eleventyConfig . addPlugin ( currentLink ( ) ) ;
126
126
127
127
// Add code examples for `<code class="example">` blocks
128
- eleventyConfig . addPlugin ( codeExamplesPlugin ) ;
128
+ eleventyConfig . addPlugin ( codeExamplesPlugin ( ) ) ;
129
129
130
130
// Highlight code blocks with Prism
131
131
eleventyConfig . addPlugin ( highlightCodePlugin ( ) ) ;
@@ -136,6 +136,10 @@ export default async function (eleventyConfig) {
136
136
// Various text replacements
137
137
eleventyConfig . addPlugin (
138
138
replaceTextPlugin ( [
139
+ {
140
+ replace : / \[ v e r s i o n \] / gs,
141
+ replaceWith : packageData . version ,
142
+ } ,
139
143
// Replace [issue:1234] with a link to the issue on GitHub
140
144
{
141
145
replace : / \[ p r : ( [ 0 - 9 ] + ) \] / gs,
You can’t perform that action at this time.
0 commit comments