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

Paragraph

mattt edited this page Jan 14, 2021 · 12 revisions

Paragraph

A paragraph.

public final class Paragraph: Node

From the CommonMark Spec:

A sequence of non-blank lines that cannot be interpreted as other kinds of blocks forms a paragraph. The contents of the paragraph are the result of parsing the paragraph’s raw content as inlines. The paragraph’s raw content is formed by concatenating the lines and removing initial and final whitespace.

Inheritance

Node, Visitable, InlineConvertible

Initializers

init(text:replacingNewLinesWithBreaks:)

public convenience init(text string: String, replacingNewLinesWithBreaks: Bool = true)

init(children:)

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

init(_:)

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

init(_:)

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

Properties

inlineValue

var inlineValue: [Inline & Node]

Methods

accept(visitor:)

public func accept<T: Visitor>(visitor: T)
Clone this wiki locally