You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: *Adds processing of custom directives. Note: The property ```name``` in custom directives can be ```String``` or ```RegExp``` type*
87
87
88
88
### `xmlMode`
89
-
Type: `Boolean`
90
-
Default: `false`
89
+
Type: `Boolean`
90
+
Default: `false`
91
91
Description: *Indicates whether special tags (`<script>` and `<style>`) should get special treatment and if "empty" tags (eg. `<br>`) can have children. If false, the content of special tags will be text only. For feeds and other XML content (documents that don't consist of HTML), set this to true.*
92
92
93
93
### `decodeEntities`
94
-
Type: `Boolean`
95
-
Default: `false`
94
+
Type: `Boolean`
95
+
Default: `false`
96
96
Description: *If set to true, entities within the document will be decoded.*
97
97
98
98
### `lowerCaseTags`
99
-
Type: `Boolean`
100
-
Default: `false`
99
+
Type: `Boolean`
100
+
Default: `false`
101
101
Description: *If set to true, all tags will be lowercased. If `xmlMode` is disabled.*
102
102
103
103
### `lowerCaseAttributeNames`
104
-
Type: `Boolean`
105
-
Default: `false`
104
+
Type: `Boolean`
105
+
Default: `false`
106
106
Description: *If set to true, all attribute names will be lowercased. This has noticeable impact on speed.*
107
107
108
108
### `recognizeCDATA`
109
-
Type: `Boolean`
110
-
Default: `false`
109
+
Type: `Boolean`
110
+
Default: `false`
111
111
Description: *If set to true, CDATA sections will be recognized as text even if the `xmlMode` option is not enabled. NOTE: If `xmlMode` is set to `true` then CDATA sections will always be recognized as text.*
112
112
113
113
### `recognizeSelfClosing`
114
-
Type: `Boolean`
115
-
Default: `false`
114
+
Type: `Boolean`
115
+
Default: `false`
116
116
Description: *If set to true, self-closing tags will trigger the `onclosetag` event even if `xmlMode` is not set to `true`. NOTE: If `xmlMode` is set to `true` then self-closing tags will always be recognized.*
117
117
118
-
### `sourceLocations`
119
-
Type: `Boolean`
120
-
Default: `false`
118
+
### `sourceLocations`
119
+
Type: `Boolean`
120
+
Default: `false`
121
121
Description: *If set to true, AST nodes will have a `location` property containing the `start` and `end` line and column position of the node.*
122
122
123
+
### `recognizeNoValueAttribute`
124
+
Type: `Boolean`
125
+
Default: `false`
126
+
Description: *If set to true, AST nodes will recognize attribute with no value and mark as `true` which will be correctly rendered by `posthtml-render` package*
0 commit comments