File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -109,7 +109,7 @@ foreach ($componentFolder in Get-ChildItem -Path $componentsRoot -Directory) {
109109 $header = GetTitleFrontMatterFromMarkdownFile $markdownFiles [0 ]
110110 $mdOutputFile = ProcessMarkdownFile $markdownFiles [0 ]
111111
112- $tocHref = $mdOutputFile.Trim (' /' ).Replace($OutputDir , ' ' ).Trim(' \' )
112+ $tocHref = $mdOutputFile.Trim (' /' ).Replace($OutputDir , ' ' ).Trim(' \' ).Replace( ' \ ' , ' / ' )
113113 $tocContents += AppendTocItem $header 1 @ { " href" = $tocHref }
114114 }
115115 else {
@@ -120,7 +120,7 @@ foreach ($componentFolder in Get-ChildItem -Path $componentsRoot -Directory) {
120120 $header = GetTitleFrontMatterFromMarkdownFile $markdownFile
121121 $mdOutputFile = ProcessMarkdownFile $markdownFile
122122
123- $tocHref = $mdOutputFile.Trim (' /' ).Replace($OutputDir , ' ' ).Trim(' \' )
123+ $tocHref = $mdOutputFile.Trim (' /' ).Replace($OutputDir , ' ' ).Trim(' \' ).Replace( ' \ ' , ' / ' )
124124 $tocContents += AppendTocItem $header 2 @ { " href" = $tocHref }
125125 }
126126 }
You can’t perform that action at this time.
0 commit comments