You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @property {boolean} [tight=false] Whether to compile list-items tightly.
11
-
* @property {boolean} [ordered=false] Whether to compile list-items as an ordered list, otherwise they are unordered.
12
-
* @property {string|null} [prefix=null] Add a prefix to links to headings in the table of contents. Useful for example when later going from mdast to hast and sanitizing with `hast-util-sanitize`.
10
+
* @property {boolean} [tight=false]
11
+
* Whether to compile list-items tightly.
12
+
* @property {boolean} [ordered=false]
13
+
* Whether to compile list-items as an ordered list, otherwise they are
14
+
* unordered.
15
+
* @property {string|null} [prefix=null]
16
+
* Add a prefix to links to headings in the table of contents.
17
+
* Useful for example when later going from mdast to hast and sanitizing with
18
+
* `hast-util-sanitize`.
13
19
*/
14
20
15
21
importextendfrom'extend'
16
22
17
23
/**
18
24
* Transform a list of heading objects to a markdown list.
19
25
*
20
-
* @param {Array.<SearchEntry>} map
26
+
* @param {Array<SearchEntry>} map
21
27
* @param {ContentsOptions} settings
22
28
*/
23
29
exportfunctioncontents(map,settings){
@@ -129,11 +135,11 @@ function insert(entry, parent, settings) {
* @property {string} [skip] Headings to skip, wrapped in `new RegExp('^(' + value + ')$', 'i')`. Any heading matching this expression will not be present in the table of contents.
* @property {Heading['depth']} [maxDepth=6] Maximum heading depth to include in the table of contents. This is inclusive: when set to `3`, level three headings are included (those with three hashes, `###`).
10
+
* @property {string} [skip]
11
+
* Headings to skip, wrapped in `new RegExp('^(' + value + ')$', 'i')`.
12
+
* Any heading matching this expression will not be present in the table of
0 commit comments