Skip to content

Commit 17d953d

Browse files
committed
Improve markdown output
1 parent 0a491ca commit 17d953d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Sources/PeripheryKit/Results/MarkdownFormatter.swift

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,15 @@ final class MarkdownFormatter: OutputFormatter {
1616

1717
let formattedResults = results.flatMap { result in
1818
describe(result, colored: colored).map { location, description in
19-
"| \(locationDescription(location)) | \(description) |"
19+
"| **\(description)**<br>\(locationDescription(location)) |"
2020
}
2121
}
2222
.joined(separator: "\n")
23+
let title = results.count == 1 ?"Result" : "Results"
2324

2425
return """
25-
| Location | Result |
26-
| :- | :- |
26+
| \(results.count) \(title) |
27+
| :- |
2728
\(formattedResults)
2829
"""
2930
}

0 commit comments

Comments
 (0)