@@ -122,7 +122,7 @@ import remarkToc from 'remark-toc'
122122import {read } from ' to-vfile'
123123
124124const file = await remark ()
125- .use (remarkToc, {heading: ' contents' , tight : true })
125+ .use (remarkToc, {heading: ' contents' })
126126 .process (await read (' example.md' ))
127127
128128console .error (String (file))
@@ -206,7 +206,7 @@ Configuration (TypeScript type).
206206* ` parents ` ([ ` Test ` from ` unist-util-is ` ] [ unist-util-is-test ] , default:
207207 ` tree ` )
208208 — allow headings to be children of certain node types
209- * ` tight ` (` boolean ` , default: ` false ` )
209+ * ` tight ` (` boolean ` , default: ` true ` )
210210 — whether to compile list items tightly, otherwise space is added around
211211 items
212212* ` ordered ` (` boolean ` , default: ` false ` )
@@ -259,11 +259,15 @@ so:
259259…that would generate the following list:
260260
261261``` markdown
262- 1 . [ Bravo ] ( #bravo )
262+ 1 . [ History ] ( #history )
263263
264- 1 . [ Charlie ] ( #charlie )
264+ 1 . [ Discovery ] ( #discovery )
265265
266- 2 . [ Delta] ( #delta )
266+ 2 . [ Name and symbol] ( #name-and-symbol )
267+
268+ 3 . [ Planet X disproved] ( #planet-x-disproved )
269+
270+ 2 . [ Orbit] ( #orbit )
267271```
268272
269273### Example: including and excluding headings
@@ -306,9 +310,11 @@ generated list:
306310…that would generate the following list:
307311
308312``` markdown
309- * [ Bravo] ( #user-content-bravo )
310- * [ Charlie] ( #user-content-charlie )
311- * [ Delta] ( #user-content-delta )
313+ * [ History] ( #user-content-history )
314+ * [ Discovery] ( #user-content-discovery )
315+ * [ Name and symbol] ( #user-content-name-and-symbol )
316+ * [ Planet X disproved] ( #user-content-planet-x-disproved )
317+ * [ Orbit] ( #user-content-orbit )
312318```
313319
314320## Types
0 commit comments