Skip to content

Validate top-level header #1976

@lmolkova

Description

@lmolkova
          @lmolkova - why disable the check for page title / h1 heading? This is the source of the problem of #1971.

Originally posted by @chalin in #1010 (comment)

first-line-h1 in markdownlint literally validates the first line.

Enabling it results in

./docs/url/url.md:1 MD041/first-line-heading/first-line-h1 First line in a file should be a top-level heading [Context: "<!--. .... ..... ...... .... ...."]

There could be some way to customize it according to https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md041---first-line-in-a-file-should-be-a-top-level-heading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesttoolingRegarding build, workflows, build-tools, ...

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions