@gucong3000 Hi, singleTags options can also take regular expression see
As a result, your settings should come down to
{
closingSingleTag: 'slash' ,
singleTags: [ /<\s*[^>]*\/>/ ]
}
@Scrum This won't work, since regular expression only check tag name.
Originally posted by @yangmingshan in posthtml/posthtml#221 (comment)
@Scrum This won't work, since regular expression only check tag name.
Originally posted by @yangmingshan in posthtml/posthtml#221 (comment)