Doesn't set =""
if set to true
, If an array is specified, it will not set the value ['customeBooleanAttr']
for the specified attributes and when specifying ['!customeBooleanAttr']
in the array will exclude attributes.
Before:
After:
Install
npm i posthtml posthtml-boolean-attributes
Usage
const fs = ;const posthtml = ;const booleanAttributes = ;;
Options
boolAttrs
Type: Boolean|Array<String|RegExp>
Default: true
Description: Doesn't set =""
if set to true
, if an array is specified, it will not set the value ['customeBooleanAttr']
for the specified attributes and when specifying ['!customeBooleanAttr'] in the array will exclude attributes.
Contributing
See PostHTML Guidelines and contribution guide.