@@ -273,7 +273,7 @@ interface List <: Parent {
273
273
type: "list";
274
274
ordered: boolean?;
275
275
start: number?;
276
- loose : boolean?;
276
+ spread : boolean?;
277
277
children: [ListContent];
278
278
}
279
279
```
@@ -290,10 +290,9 @@ that the order of items is not important (when `false` or not present).
290
290
If the ` ordered ` field is ` true ` , a ` start ` field can be present.
291
291
It represents the starting number of the node.
292
292
293
- A ` loose ` field can be present.
293
+ A ` spread ` field can be present.
294
294
It represents that any of its items is separated by a blank line from its
295
- [ siblings] [ term-sibling ] or contains two or more [ _ children_ ] [ term-child ]
296
- (when ` true ` ), or not (when ` false ` or not present).
295
+ [ siblings] [ term-sibling ] (when ` true ` ), or not (when ` false ` or not present).
297
296
298
297
For example, the following markdown:
299
298
@@ -308,10 +307,11 @@ Yields:
308
307
type: ' list' ,
309
308
ordered: true ,
310
309
start: 1 ,
311
- loose : false ,
310
+ spread : false ,
312
311
children: [{
313
312
type: ' listItem' ,
314
313
checked: true ,
314
+ spread: false ,
315
315
children: [{
316
316
type: ' paragraph' ,
317
317
children: [{type: ' text' , value: ' foo' }]
@@ -326,6 +326,7 @@ Yields:
326
326
interface ListItem <: Parent {
327
327
type: "listItem";
328
328
checked: boolean?;
329
+ spread: boolean?;
329
330
children: [BlockContent];
330
331
}
331
332
```
@@ -340,6 +341,10 @@ A `checked` field can be present.
340
341
It represents whether the item is done (when ` true ` ), not done (when ` false ` ),
341
342
or indeterminate or not applicable (when ` null ` or not present).
342
343
344
+ A ` spread ` field can be present.
345
+ It represents that the item contains two or more [ _ children_ ] [ term-child ]
346
+ separated by a blank line (when ` true ` ), or not (when ` false ` or not present).
347
+
343
348
For example, the following markdown:
344
349
345
350
``` markdown
@@ -352,6 +357,7 @@ Yields:
352
357
{
353
358
type: ' listItem' ,
354
359
checked: true ,
360
+ spread: false ,
355
361
children: [{
356
362
type: ' paragraph' ,
357
363
children: [{type: ' text' , value: ' bar' }]
0 commit comments