We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de727bf commit ef1cd5aCopy full SHA for ef1cd5a
1 file changed
Types/MarkX/Sync.ps1
@@ -106,7 +106,10 @@ $allMarkdown = @(:nextInput foreach ($md in $this.Input) {
106
}
107
108
if ($md -match '(?>\.md|markdown)$' -and
109
- (Test-Path $md -ErrorAction Ignore)
+ (
110
+ [IO.File]::Exists("$md") -or
111
+ (Test-Path $md -ErrorAction Ignore)
112
+ )
113
) {
114
$md = Get-Content -Raw $md
115
@@ -132,7 +135,7 @@ $allMarkdown = @(foreach ($md in $allMarkdown) {
132
135
if ($md -match '^---') {
133
136
$null, $yamlheader, $restOfMakdown = $md -split '---', 3
134
137
if ($yamlheader) {
- $yamlHeaders+= $yamlheader
138
+ $yamlHeaders+= $yamlheader
139
140
$restOfMakdown
141
} else {
0 commit comments