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.
mdast-util-toc
1 parent de29ba0 commit fdd5002Copy full SHA for fdd5002
types/index.d.ts
@@ -4,7 +4,7 @@ import {Node} from 'unist'
4
import {TOCOptions} from 'mdast-util-toc'
5
6
declare namespace remarkToc {
7
- type TOCSettings = Pick<TOCOptions, 'heading' | 'maxDepth' | 'tight' | 'skip'>
+ type TOCSettings = TOCOptions
8
}
9
10
/**
types/remark-toc-tests.ts
@@ -21,3 +21,11 @@ remark().use(toc, {
21
remark().use(toc, {
22
skip: 'skip-heading'
23
})
24
+
25
+remark().use(toc, {
26
+ prefix: 'prefix-'
27
+})
28
29
30
+ parents: ['root', 'blockquote']
31
0 commit comments