We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9614e5b commit ce76e1eCopy full SHA for ce76e1e
src/lib/rehype/remarkInferToc.ts
@@ -1,6 +1,6 @@
1
import type { BlockContent, DefinitionContent, ListItem } from "mdast"
2
import { toc } from "mdast-util-toc"
3
-import type { Nodes } from "mdast-util-toc/lib"
+import type { List, Nodes } from "mdast-util-toc/lib"
4
import type { Plugin } from "unified"
5
import { visit } from "unist-util-visit"
6
@@ -13,7 +13,7 @@ const remarkInferToc: Plugin<[IRemarkTocOptions]> = (options) => {
13
}
14
15
const processToC = (
16
- node: BlockContent | DefinitionContent | ListItem | null,
+ node: BlockContent | DefinitionContent | ListItem | List | null,
17
current: TocNodeType
18
): TocNodeType => {
19
if (!node) {
0 commit comments