Skip to content
This repository was archived by the owner on Oct 17, 2021. It is now read-only.
mattt edited this page Feb 7, 2020 · 14 revisions

List

An ordered list.

public final class List: Node

From the CommonMark Spec:

A list is a sequence of one or more list items of the same type. The list items may be separated by any number of blank lines.

A list marker is a bullet list marker or an ordered list marker.

An ordered list marker is a sequence of 1–9 arabic digits (0-9), followed by either a . character or a ) character. (The reason for the length limit is that with 10 digits we start seeing integer overflows in some browsers.)

Inheritance

Node

Nested Types

List.Kind

Initializers

init(of:delimiter:tight:_:)

public convenience init<Values>(of values: Values, delimiter: Delimiter = .none, tight: Bool = true, _ closure: (Values.Element) -> String) where Values: Sequence

init(delimiter:tight:_:)

public convenience init(delimiter: Delimiter = .none, tight: Bool = true, _ builder: () -> ListItemConvertible)

init(_:)

public convenience init(_ closure: () -> String)

init(of:delimiter:tight:_:)

public convenience init<Values>(of values: Values, delimiter: Delimiter = .none, tight: Bool = true, _ builder: (Values.Element) -> ListItemConvertible) where Values: Sequence

init(_:)

public convenience init(_ builder: () -> BlockConvertible)

Clone this wiki locally