mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2026-04-26 01:36:03 +03:00
[GH-ISSUE #459] False MD401 Errors (First line in a file should be a top level heading) #380
Labels
No labels
bug
enhancement
enhancement
enhancement
fixed in next
fixed in next
fixed in next
new rule
new rule
new rule
pull-request
question
refactoring
refactoring
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/markdownlint#380
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @FrightRisk on GitHub (Nov 8, 2021).
Original GitHub issue: https://github.com/DavidAnson/markdownlint/issues/459
This error comes up now everytime I create a new page. The page is no different than any other page. I use a line of asterisks above and below my H1 headings. The top asterisk like shows the squigglies and gives me an error. I can't see a pattern and there are no special characters in the .rtf file seen in a next editor. Yet if I delete the file and then cut and paste it all back in again and save, the error goes away. This has just started happening in the last couple of weeks.
@nschonni commented on GitHub (Nov 8, 2021):
If you're putting those astrix lines above and below your heading, it is likely being interpreted as front matter rather than a plain H1
@DavidAnson commented on GitHub (Nov 8, 2021):
If the first line of the file is a line of asterisks as I think you are saying, then this rule is correctly reporting that the first line is not a top-level heading. If not, please show a small example of the Markdown you are using.
@DavidAnson commented on GitHub (Nov 8, 2021):
(What Nick suggested.)