How to selectively remove checking for a particular element-required-attributes rule?
I am using a MarkDown processor (GoldMark) that does not include a "scope" attribute in <th>
elements.
Yet the standard rule set includes that as a required attribute.
I want to disable just this rule (yet retain the general element-required-attribute
rule for other elements).
From the docs, I was only able to glean I could add a rule to my .htmlvalidate.json
.
"element-required-attribute": "warn"
as a work-around. Is there a more specific way to exclude just that element from the ruleset?
Use cases
Perhaps a rule syntax that allows for more granualar editing:
"element-required-attribute": {
"th": {
"scope": "off"
}
}
Edited by Mike Koss