@@ -4,8 +4,8 @@ const path = require('path');
44
55const repository = 'h1cr.io/website' ;
66const indexFile = 'README.md' ;
7- const markerStart = ` <!-- toc-start -->\n` ;
8- const markerEnd = ` <!-- toc-end -->\n` ;
7+ const markerStart = ' <!-- toc-start -->\n' ;
8+ const markerEnd = ' <!-- toc-end -->\n' ;
99
1010const listImage = async ( ) => {
1111 const images = [ ] ;
@@ -19,16 +19,16 @@ const listImage = async () => {
1919 const tags = Object . keys ( config ) ;
2020 const packages = Object . values ( config ) . map ( x => x . packages ) . flat ( ) . filter ( x => ! ! x ) ;
2121
22- images . push ( { name, tags, packages } )
22+ images . push ( { name, tags, packages } ) ;
2323 }
2424 return images ;
2525} ;
2626
27- const quote = ( v ) => '```' + v + '```' ;
27+ const quote = ( v ) => [ '```' , v , '```' ] . join ( '' ) ;
2828
2929const generateToc = ( images ) => {
3030 const line = [ ] ;
31- line . push ( '| Image | Tag | Repology latest |' )
31+ line . push ( '| Image | Tag | Repology latest |' ) ;
3232 line . push ( '|------ | --- | --------------- |' ) ;
3333 for ( const image of images ) {
3434 const row = [
@@ -38,7 +38,7 @@ const generateToc = (images) => {
3838 ] ;
3939 line . push ( `| ${ row . join ( ' | ' ) } |` ) ;
4040 } ;
41- return line . join ( "\n" ) + "\n" ;
41+ return ` ${ line . join ( '\n' ) } \n` ;
4242} ;
4343
4444const updateIndex = async ( index ) => {
0 commit comments