Skip to content

Commit 796dc27

Browse files
feat: MarkX.YamlHeader ( Fixes #32, Fixes #33 )
Adding to Sync
1 parent b879797 commit 796dc27

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Types/MarkX/Sync.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,9 @@ $allMarkdown = @(:nextInput foreach ($md in $this.Input) {
102102
$yamlheader = ''
103103
if ($md -match '^---') {
104104
$null, $yamlheader, $md = $in -split '---', 3
105+
if ($yamlheader) {
106+
$this | Add-Member NoteProperty '#YamlHeader' $yamlheader -Force
107+
}
105108
}
106109

107110
$md

0 commit comments

Comments
 (0)