Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

List_Kind_Delimiter_Item

mattt edited this page Feb 7, 2020 · 1 revision

List.Kind.Delimiter.Item

public final class Item: Node

Inheritance

Node

Initializers

init(delimiter:children:)

public convenience init(delimiter: Delimiter = .none, children: [List.Item] = [])

init(children:)

public convenience init(children: [Block & Node] = [])

init(children:)

public convenience init(children: [Inline & Node] = [])

Properties

kind

var kind: Kind

cmark_node_type

var cmark_node_type: cmark_node_type

loose

Whether the list is loose.

var loose: Bool

From the CommonMark 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.

delimiter

var delimiter: Delimiter

cmark_node_type

var cmark_node_type: cmark_node_type

tight

Whether the list is tight.

var tight: Bool

Seealso: loose

Clone this wiki locally