# `MD041` - First line in a file should be a top-level heading Tags: `headers`, `headings` Aliases: `first-line-h1`, `first-line-heading` Parameters: - `front_matter_title`: RegExp for matching title in front matter (`string`, default `^\s*title\s*[:=]`) - `level`: Heading level (`integer`, default `1`) This rule is intended to ensure documents have a title and is triggered when the first line in the file isn't a top-level (h1) heading: ```markdown This is a file without a heading ``` To fix this, add a top-level heading to the beginning of the file: ```markdown # File with heading This is a file with a top-level heading ``` Because it is common for projects on GitHub to use an image for the heading of `README.md` and that is not well-supported by Markdown, HTML headings are also permitted by this rule. For example: ```markdown