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) {
109
109
$header = GetTitleFrontMatterFromMarkdownFile $markdownFiles [0 ]
110
110
$mdOutputFile = ProcessMarkdownFile $markdownFiles [0 ]
111
111
112
- $tocHref = $mdOutputFile.Trim (' /' ).Replace($OutputDir , ' ' ).Trim(' \' )
112
+ $tocHref = $mdOutputFile.Trim (' /' ).Replace($OutputDir , ' ' ).Trim(' \' ).Replace( ' \ ' , ' / ' )
113
113
$tocContents += AppendTocItem $header 1 @ { " href" = $tocHref }
114
114
}
115
115
else {
@@ -120,7 +120,7 @@ foreach ($componentFolder in Get-ChildItem -Path $componentsRoot -Directory) {
120
120
$header = GetTitleFrontMatterFromMarkdownFile $markdownFile
121
121
$mdOutputFile = ProcessMarkdownFile $markdownFile
122
122
123
- $tocHref = $mdOutputFile.Trim (' /' ).Replace($OutputDir , ' ' ).Trim(' \' )
123
+ $tocHref = $mdOutputFile.Trim (' /' ).Replace($OutputDir , ' ' ).Trim(' \' ).Replace( ' \ ' , ' / ' )
124
124
$tocContents += AppendTocItem $header 2 @ { " href" = $tocHref }
125
125
}
126
126
}
You can’t perform that action at this time.
0 commit comments