@@ -147,8 +147,8 @@ console.log(toJs(estree, {handlers: jsx}).value)
147
147
148
148
## API
149
149
150
- This package exports the identifiers [ ` defaultHandlers ` ] [ defaulthandlers ] and
151
- [ ` toEstree ` ] [ toestree ] .
150
+ This package exports the identifiers [ ` defaultHandlers ` ] [ api-default-handlers ]
151
+ and [ ` toEstree ` ] [ api-to-estree ] .
152
152
There is no default export.
153
153
154
154
### ` toEstree(tree[, options]) `
@@ -167,7 +167,7 @@ You may have to do `program.comments = undefined` for certain compilers.
167
167
168
168
* ` tree ` ([ ` HastNode ` ] [ hast-node ] )
169
169
— hast tree
170
- * ` options ` ([ ` Options ` ] [ options ] , optional)
170
+ * ` options ` ([ ` Options ` ] [ api- options] , optional)
171
171
— configuration
172
172
173
173
###### Returns
@@ -192,7 +192,7 @@ calls, and then serialize with whatever (`astring`, `escodegen`).
192
192
193
193
Default handlers for elements (` Record<string, Handle> ` ).
194
194
195
- Each key is a node type, each value is a [ ` Handle ` ] [ handle ] .
195
+ Each key is a node type, each value is a [ ` Handle ` ] [ api- handle] .
196
196
197
197
### ` ElementAttributeNameCase `
198
198
@@ -215,7 +215,7 @@ Turn a hast node into an estree node (TypeScript type).
215
215
216
216
* ` node ` ([ ` HastNode ` ][hast-node])
217
217
— expected hast node
218
- * ` state ` ([ ` State ` ][state])
218
+ * ` state ` ([ ` State ` ][api- state])
219
219
— info passed around about the current state
220
220
221
221
###### Returns
@@ -238,7 +238,7 @@ Configuration (TypeScript type).
238
238
manually)
239
239
* ` handlers ` ( ` Record <string , Handle >` , optional)
240
240
— custom handlers
241
- * ` space ` ([ ` Space ` ][space], default: ` ' html' ` ).
241
+ * ` space ` ([ ` Space ` ][api- space], default: ` ' html' ` ).
242
242
which space the document is in; when an ` <svg >` element is found in the
243
243
HTML space, this package already automatically switches to and from the SVG
244
244
space when entering and exiting it
@@ -287,8 +287,8 @@ Info passed around about the current state (TypeScript type).
287
287
This package is fully typed with [TypeScript][].
288
288
It exports the additional types
289
289
[ ` ElementAttributeNameCase ` ][api-element-attribute-name-case],
290
- [ ` Handle ` ][handle], [ ` Options ` ][options],
291
- [ ` Space ` ][space], and [ ` State ` ][state].
290
+ [ ` Handle ` ][api- handle], [ ` Options ` ][api- options],
291
+ [ ` Space ` ][api- space], and [ ` State ` ][api- state].
292
292
293
293
## Compatibility
294
294
@@ -393,16 +393,16 @@ abide by its terms.
393
393
394
394
[mdx]: https://mdxjs.com
395
395
396
- [defaulthandlers ]: #defaulthandlers
396
+ [api-default-handlers ]: #defaulthandlers
397
397
398
- [toestree ]: #toestreetree-options
398
+ [api-to-estree ]: #toestreetree-options
399
399
400
400
[api-element-attribute-name-case]: #elementattributenamecase
401
401
402
- [space ]: #space
402
+ [api-handle ]: #handle
403
403
404
- [options]: #options
404
+ [api- options]: #options
405
405
406
- [handle ]: #handle
406
+ [api-space ]: #space
407
407
408
- [state]: #state
408
+ [api- state]: #state
0 commit comments