@@ -18,7 +18,7 @@ const TocPlugin = require('@patternfly/pfe-tools/11ty/plugins/table-of-contents.
1818const markdownItAnchor = require ( 'markdown-it-anchor' ) ;
1919
2020/** @param {import('@11ty/eleventy/src/UserConfig') } eleventyConfig */
21- module . exports = function ( eleventyConfig ) {
21+ module . exports = function ( eleventyConfig ) {
2222 eleventyConfig . amendLibrary ( 'md' , md => md . use ( markdownItAnchor ) ) ;
2323
2424 eleventyConfig . setQuietMode ( true ) ;
@@ -49,10 +49,10 @@ module.exports = function (eleventyConfig) {
4949 eleventyConfig . addPlugin ( TodosPlugin ) ;
5050
5151 /** format date strings */
52- eleventyConfig . addFilter ( 'prettyDate' , function ( dateStr , options = { } ) {
52+ eleventyConfig . addFilter ( 'prettyDate' , function ( dateStr , options = { } ) {
5353 const { dateStyle = 'medium' } = options ;
5454 return new Intl . DateTimeFormat ( 'en-US' , { dateStyle } )
55- . format ( new Date ( dateStr ) ) ;
55+ . format ( new Date ( dateStr ) ) ;
5656 } ) ;
5757
5858 /** fancy syntax highlighting with diff support */
@@ -86,8 +86,8 @@ module.exports = function (eleventyConfig) {
8686 return null ;
8787 } else {
8888 return eleventyConfig . javascriptFunctions
89- . slug ( $ . text ( ) )
90- . replace ( / [ & , + ( ) $ ~ % . ' " : * ? ! < > { } ] / g, '' ) ;
89+ . slug ( $ . text ( ) )
90+ . replace ( / [ & , + ( ) $ ~ % . ' " : * ? ! < > { } ] / g, '' ) ;
9191 }
9292 } ,
9393 } ) ;
0 commit comments