Skip to content

singleTags won't work regular expression #37

@Scrum

Description

@Scrum

@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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions