Skip to content

How to stop htmlhint from linting markdown files?  #19

@jtheletter

Description

@jtheletter

Regarding the htmlhint plugin for Sublime, 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 doesn't work:

{
    "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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions