Skip to content

Commit

Permalink
markdown.rs: make first line a top-level heading (#1511)
Browse files Browse the repository at this point in the history
Fixes [`MD041` - First line in a file should be a top-level heading](https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md041.md)
  • Loading branch information
sebastiaanspeck authored Oct 6, 2024
1 parent 829f5f3 commit d8253a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lychee-bin/src/formatters/stats/markdown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ impl Display for MarkdownResponseStats {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
let stats = &self.0;

writeln!(f, "## Summary")?;
writeln!(f, "# Summary")?;
writeln!(f)?;
writeln!(f, "{}", stats_table(&self.0))?;

Expand Down Expand Up @@ -237,7 +237,7 @@ mod tests {
original: Url::parse("https://example.com/original").unwrap(),
});
let summary = MarkdownResponseStats(stats);
let expected = "## Summary
let expected = "# Summary
| Status | Count |
|---------------|-------|
Expand Down

0 comments on commit d8253a1

Please sign in to comment.