1212
1313## Contents
1414
15- * [ What is this?] ( #what-is-this )
16- * [ When should I use this?] ( #when-should-i-use-this )
17- * [ Install] ( #install )
18- * [ Use] ( #use )
19- * [ API] ( #api )
20- * [ ` fromDom(tree, options?) ` ] ( #fromdomtree-options )
21- * [ ` AfterTransform ` ] ( #aftertransform )
22- * [ ` Options ` ] ( #options )
23- * [ Types] ( #types )
24- * [ Compatibility] ( #compatibility )
25- * [ Security] ( #security )
26- * [ Contribute] ( #contribute )
27- * [ Related] ( #related )
28- * [ License] ( #license )
15+ * [ What is this?] ( #what-is-this )
16+ * [ When should I use this?] ( #when-should-i-use-this )
17+ * [ Install] ( #install )
18+ * [ Use] ( #use )
19+ * [ API] ( #api )
20+ * [ ` fromDom(tree, options?) ` ] ( #fromdomtree-options )
21+ * [ ` AfterTransform ` ] ( #aftertransform )
22+ * [ ` Options ` ] ( #options )
23+ * [ Types] ( #types )
24+ * [ Compatibility] ( #compatibility )
25+ * [ Security] ( #security )
26+ * [ Contribute] ( #contribute )
27+ * [ Related] ( #related )
28+ * [ License] ( #license )
2929
3030## What is this?
3131
@@ -38,9 +38,9 @@ syntax tree.
3838You can use this project when you want to use hast in browsers.
3939This package is very small, but it does so by:
4040
41- * …not providing positional information
42- * …potentially yielding varying results in different (especially older)
43- browsers
41+ * …not providing positional information
42+ * …potentially yielding varying results in different (especially older)
43+ browsers
4444
4545The hast utility [ ` hast-util-to-dom ` ] [ hast-util-to-dom ] does the inverse of this
4646utility.
@@ -110,10 +110,10 @@ Transform a DOM tree to a hast tree.
110110
111111###### Parameters
112112
113- * ` tree ` ([ ` DomNode ` ] [ dom-node ] )
114- — DOM tree to transform
115- * ` options ` ([ ` Options ` ] [ api-options ] , optional)
116- — configuration
113+ * ` tree ` ([ ` DomNode ` ] [ dom-node ] )
114+ — DOM tree to transform
115+ * ` options ` ([ ` Options ` ] [ api-options ] , optional)
116+ — configuration
117117
118118###### Returns
119119
@@ -125,10 +125,10 @@ Callback called when each node is transformed (TypeScript type).
125125
126126###### Parameters
127127
128- * ` domNode ` ([ ` DomNode ` ] [ dom-node ] )
129- — DOM node that was handled
130- * ` hastNode ` ([ ` HastNode ` ] [ hast-node ] )
131- — corresponding hast node
128+ * ` domNode ` ([ ` DomNode ` ] [ dom-node ] )
129+ — DOM node that was handled
130+ * ` hastNode ` ([ ` HastNode ` ] [ hast-node ] )
131+ — corresponding hast node
132132
133133###### Returns
134134
@@ -140,8 +140,8 @@ Configuration (TypeScript type).
140140
141141##### Fields
142142
143- * ` afterTransform ` ([ ` AfterTransform ` ] [ api-after-transform ] , optional)
144- — callback called when each node is transformed
143+ * ` afterTransform ` ([ ` AfterTransform ` ] [ api-after-transform ] , optional)
144+ — callback called when each node is transformed
145145
146146##### Returns
147147
@@ -180,14 +180,14 @@ abide by its terms.
180180
181181## Related
182182
183- * [ ` hast-util-from-html ` ] [ hast-util-from-html ]
184- — parse hast from a string of HTML
185- * [ ` hast-util-sanitize ` ] ( https://github.com/syntax-tree/hast-util-sanitize )
186- — sanitize hast nodes
187- * [ ` hast-util-to-html ` ] ( https://github.com/syntax-tree/hast-util-to-html )
188- — serialize hast as HTML
189- * [ ` hast-util-to-dom ` ] ( https://github.com/syntax-tree/hast-util-to-dom )
190- — create DOM trees from hast
183+ * [ ` hast-util-from-html ` ] [ hast-util-from-html ]
184+ — parse hast from a string of HTML
185+ * [ ` hast-util-sanitize ` ] ( https://github.com/syntax-tree/hast-util-sanitize )
186+ — sanitize hast nodes
187+ * [ ` hast-util-to-html ` ] ( https://github.com/syntax-tree/hast-util-to-html )
188+ — serialize hast as HTML
189+ * [ ` hast-util-to-dom ` ] ( https://github.com/syntax-tree/hast-util-to-dom )
190+ — create DOM trees from hast
191191
192192## License
193193
0 commit comments