type

ListBlock

src @Js
abstract class ListBlock : Block

Abstract base class for list blocks

fields

tight

Whether this list is tight or loose

Slot Details

tight

src Bool tight := false

Whether this list is tight or loose

spec: A list is loose if any of its constituent list items are separated by blank lines, or if any of its constituent list items directly contain two block-level elements with a blank line between them. Otherwise, a list is tight. (The difference in HTML output is that paragraphs in a loose list are wrapped in <p> tags, while paragraphs in a tight list are not.)