Skip to content

Commit 0831dd6

Browse files
committed
Add a todo inline
1 parent 0c67e83 commit 0831dd6

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

lib/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ import {createState} from './state.js'
9393
* @returns {HastNodes | null | undefined}
9494
* hast tree.
9595
*/
96+
// To do: next major: always return a single `root`.
9697
export function toHast(tree, options) {
9798
const state = createState(tree, options)
9899
const node = state.one(tree, null)

readme.md

-2
Original file line numberDiff line numberDiff line change
@@ -210,8 +210,6 @@ Handle a node (TypeScript).
210210

211211
###### Parameters
212212

213-
<!-- To do: rename to `state`. -->
214-
215213
* `state` ([`State`][api-state])
216214
— info passed around
217215
* `node` ([`MdastNode`][mdast-node])

0 commit comments

Comments
 (0)