Closed edg2s closed 5 years ago
In no-parse-html we still allow parsing of single tags, but the regex allows for different styles:
no-parse-html
'<div>'
'<div/>'
'<div />'
We should allow users to enforce one of these sensible defaults for code consistency and greppability. These could be named:
minimal
self-closing
I'm not sure we need to allow the space-closing style but it would be possible.
Also added a fixer! Tested and ran on Wikibase: https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/Wikibase/+/542442/
In
no-parse-html
we still allow parsing of single tags, but the regex allows for different styles:'<div>'
'<div/>'
'<div />'
(..and other esoteric styles with excess whitespace)We should allow users to enforce one of these sensible defaults for code consistency and greppability. These could be named:
minimal
(default)self-closing
I'm not sure we need to allow the space-closing style but it would be possible.