File tree Expand file tree Collapse file tree
site/src/components/shortcodes Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4040
4141 content = matches [1 ]
4242
43- // Fix the identation by removing extra spaces at the beginning of each line
43+ // Fix the indentation by removing extra spaces at the beginning of each line
4444 const lines = content .split (' \n ' )
4545 const spaceCounts = lines .filter ((line ) => line .trim ().length > 0 ).map ((line ) => line .match (/ ^ * / )[0 ].length )
4646 const minSpaces = spaceCounts .length ? Math .min (... spaceCounts ) : 0
Original file line number Diff line number Diff line change 4242
4343 content = matches [1 ].replaceAll (' !default' , ' ' )
4444
45- // Fix the identation by removing extra spaces at the beginning of each line
45+ // Fix the indentation by removing extra spaces at the beginning of each line
4646 const lines = content .split (' \n ' )
4747 const spaceCounts = lines .filter ((line ) => line .trim ().length > 0 ).map ((line ) => line .match (/ ^ * / )[0 ].length )
4848 const minSpaces = spaceCounts .length ? Math .min (... spaceCounts ) : 0
You can’t perform that action at this time.
0 commit comments