Open xefiry opened 1 week ago
This rule is behaving as documented (a top level heading must be on the first line), but I agree that being preceeded by a blank line doesn't seem like it should disable the rule.
https://github.com/DavidAnson/markdownlint/blob/main/doc/md025.md
The error MD025 "Multiple top-level headings in the same document" should trigger when there is more than one heading level 1 in the document.
However, if there are empty and/or comment lines before the first heading, the error does not trigger.
Example with an empty line and a comment
In this example, the comment is to ignore Title in the generation of the table of content by the extension Markdown All in One, but any comment will do.
The error can be reproduced with any amount of comment lines or empty lines before the first heading.