Skip to content

Commit c6a2591

Browse files
author
James Brundage
committed
Updating Markdown Format (broadening support)
1 parent cdea070 commit c6a2591

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Formatting/Markdown.format.ps1

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ Write-FormatView -TypeName Markdown -Action {
77
$thisObject.Table | Format-Markdown
88
}
99
elseif ($thisObject.InputObject) {
10-
$thisObject.InputObject | Format-Markdown
10+
$thisObject | Format-Markdown -InputObject { $thisObject.InputObject }
11+
}
12+
elseif ($thisObject.Heading -and ($thisObject.Code -or $this.CodeLanguage)) {
13+
$thisObject | Format-Markdown
1114
}
1215
elseif ($thisObject.psobject.Properties.Length) {
1316
$thisObject | Format-Markdown

0 commit comments

Comments
 (0)