Update MD044/proper-names to add html_elements parameter (fixes #435).

This commit is contained in:
David Anson 2022-04-25 21:50:33 -07:00
parent 8afec14376
commit 0f845e9ba1
15 changed files with 186 additions and 14 deletions

View file

@ -1752,7 +1752,7 @@ Tags: spelling
Aliases: proper-names
Parameters: names, code_blocks (string array; default `null`, boolean; default `true`)
Parameters: names, code_blocks, html_elements (string array; default `null`, boolean; default `true`, boolean; default `true`)
Fixable: Most violations can be fixed by tooling
@ -1771,7 +1771,9 @@ the proper capitalization, specify the desired letter case in the `names` array:
```
Set the `code_blocks` parameter to `false` to disable this rule for code blocks
and spans.
and spans. Set the `html_elements` parameter to `false` to disable this rule
for HTML elements and attributes (such as when using a proper name as part of
a path for `a`/`href` or `img`/`src`).
Rationale: Incorrect capitalization of proper names is usually a mistake.