@@ -246,14 +246,14 @@ Info passed around about the current state (TypeScript type).
246
246
247
247
* ` patch ` (` (from: HastNode, to: MdastNode) => void ` )
248
248
— copy a node’s positional info
249
+ * ` one ` (` (node: HastNode, parent: HastParent | undefined) => MdastNode | Array<MdastNode> | void ` )
250
+ — transform a hast node to mdast
249
251
* ` all ` (` (parent: HastParent) => Array<MdastContent> ` )
250
252
— transform the children of a hast parent to mdast
251
253
* ` toFlow ` (` (nodes: Array<MdastContent>) => Array<MdastFlowContent> ` )
252
- — transform the children of a hast parent to mdast
254
+ — transform a list of mdast nodes to flow
253
255
* ` toSpecificContent ` (` <ParentType>(nodes: Array<MdastContent>, build: (() => ParentType)) => Array<ParentType> ` )
254
256
— turn arbitrary content into a list of a particular node type
255
- * ` one ` (` (node: HastNode, parent: HastParent | undefined) => MdastNode | Array<MdastNode> | void ` )
256
- — transform a hast node to mdast
257
257
* ` resolve ` (` (url: string | null | undefined) => string ` )
258
258
— resolve a URL relative to a base
259
259
* ` options ` ([ ` Options ` ] [ options ] )
@@ -510,7 +510,7 @@ abide by its terms.
510
510
511
511
[ commonmark ] : https://commonmark.org
512
512
513
- [ html-paragraphs ] : https://html.spec.whatwg.org/#paragraphs
513
+ [ html-paragraphs ] : https://html.spec.whatwg.org/multipage/dom.html #paragraphs
514
514
515
515
[ mdast-util-to-hast ] : https://github.com/syntax-tree/mdast-util-to-hast
516
516
0 commit comments