mirror of
https://github.com/Hopiu/lychee.git
synced 2026-05-01 02:14:53 +00:00
markdown.rs: make first line a top-level heading (#1511)
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)
This commit is contained in:
parent
829f5f3e72
commit
d8253a11f5
1 changed files with 2 additions and 2 deletions
|
|
@ -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))?;
|
||||
|
||||
|
|
@ -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 |
|
||||
|---------------|-------|
|
||||
|
|
|
|||
Loading…
Reference in a new issue