Skip to content

Commit f2211ed

Browse files
release: MarkX 0.1.2
Updating Module Version and CHANGELOG
2 parents 1d46291 + 2c674fe commit f2211ed

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

MarkX.types.ps1xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,10 @@ $allMarkdown = @(:nextInput foreach ($md in $this.Input) {
142142
}
143143

144144
if ($md -match '(?>\.md|markdown)$' -and
145-
(Test-Path $md -ErrorAction Ignore)
145+
(
146+
[IO.File]::Exists("$md") -or
147+
(Test-Path $md -ErrorAction Ignore)
148+
)
146149
) {
147150
$md = Get-Content -Raw $md
148151
}
@@ -168,7 +171,7 @@ $allMarkdown = @(foreach ($md in $allMarkdown) {
168171
if ($md -match '^---') {
169172
$null, $yamlheader, $restOfMakdown = $md -split '---', 3
170173
if ($yamlheader) {
171-
$yamlHeaders+= $yamlheader
174+
$yamlHeaders+= $yamlheader
172175
}
173176
$restOfMakdown
174177
} else {

0 commit comments

Comments
 (0)