We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0c67e83 commit 0831dd6Copy full SHA for 0831dd6
lib/index.js
@@ -93,6 +93,7 @@ import {createState} from './state.js'
93
* @returns {HastNodes | null | undefined}
94
* hast tree.
95
*/
96
+// To do: next major: always return a single `root`.
97
export function toHast(tree, options) {
98
const state = createState(tree, options)
99
const node = state.one(tree, null)
readme.md
@@ -210,8 +210,6 @@ Handle a node (TypeScript).
210
211
###### Parameters
212
213
-<!-- To do: rename to `state`. -->
214
-
215
* `state` ([`State`][api-state])
216
— info passed around
217
* `node` ([`MdastNode`][mdast-node])
0 commit comments