Skip to content

Commit 12c0db9

Browse files
committed
docs: desctiption for option directives
1 parent 25ba6d0 commit 12c0db9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

README.md

+7
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,13 @@ Tag objects generally look something like this:
7777

7878
Tag objects can contain three keys. The `tag` key takes the name of the tag as the value. This can include custom tags. The optional `attrs` key takes an object with key/value pairs representing the attributes of the html tag. A boolean attribute has an empty string as its value. Finally, the optional `content` key takes an array as its value, which is a PostHTML AST. In this manner, the AST is a tree that should be walked recursively.
7979

80+
## Options
81+
82+
### `directives`
83+
Type: `Array`
84+
Default: `[{name: '!doctype', start: '<', end: '>'}]`
85+
Description: *Adds processing of custom directives*
86+
8087
## License
8188

8289
[MIT](LICENSE)

0 commit comments

Comments
 (0)