posthtml-render
posthtml-render copied to clipboard
singleTags won't work regular expression
@gucong3000 Hi,
singleTagsoptions can also take regular expression seeAs 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 https://github.com/posthtml/posthtml/issues/221#issuecomment-652861246