Skip to content

Commit 7a09ded

Browse files
committed
Fix typo
1 parent 1b04a5a commit 7a09ded

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

readme.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -246,14 +246,14 @@ Info passed around about the current state (TypeScript type).
246246

247247
* `patch` (`(from: HastNode, to: MdastNode) => void`)
248248
— copy a node’s positional info
249+
* `one` (`(node: HastNode, parent: HastParent | undefined) => MdastNode | Array<MdastNode> | void`)
250+
— transform a hast node to mdast
249251
* `all` (`(parent: HastParent) => Array<MdastContent>`)
250252
— transform the children of a hast parent to mdast
251253
* `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
253255
* `toSpecificContent` (`<ParentType>(nodes: Array<MdastContent>, build: (() => ParentType)) => Array<ParentType>`)
254256
— 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
257257
* `resolve` (`(url: string | null | undefined) => string`)
258258
— resolve a URL relative to a base
259259
* `options` ([`Options`][options])
@@ -510,7 +510,7 @@ abide by its terms.
510510

511511
[commonmark]: https://commonmark.org
512512

513-
[html-paragraphs]: https://html.spec.whatwg.org/#paragraphs
513+
[html-paragraphs]: https://html.spec.whatwg.org/multipage/dom.html#paragraphs
514514

515515
[mdast-util-to-hast]: https://github.com/syntax-tree/mdast-util-to-hast
516516

0 commit comments

Comments
 (0)