Define Custom elements using regex
Hi,
When defining custom elements in the configuration, it would be useful to be able to define them using regex, e.g.:
"elements": [
"html5",
{"^[A-Z]\d+$": { "flow": true, "phrasing": true }}
]
Use case:
Our web app uses spreadsheet-like cell keys, e.g. <A1/>
, <Z1000/>
, and instead of writing them out one by one (and produce 1000s of custom elements in the configuration which slows it down) it would be great if regex could do the heavy lifting for us.
html-validate is awesome btw!
Many thanks! Chris