Skip to content

How to stop htmlhint from linting markdown files?  #446

@jtheletter

Description

@jtheletter

Describe the bug

I'm seeing flags raised in readme.md files, such as this:

htmlhint: error
doctype-first - Doctype must be declared first.

And:

htmlhint: error
spec-char-escape - Special characters must be escaped : [ > ].

htmlhint is properly linting *.html files. It's not mis-linting other files, such as *.css and *.js.

Why is it linting markdown files?

If I'm required to exclude them, how do I? Should I add a file to my machine's home directory, such as ~/.htmlhint? What should it say? The following don't work:

{
    "exclude": ["*.md"]
}
{
    "exclude": ["**/*.md"]
}
  • macOS Catalina Version 10.15.4 (19E287)
  • Sublime Text Version 3.2.2, Build 3211
  • htmlhint --version 0.10.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions