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

DiscussionPart

mattt edited this page Jun 10, 2021 · 8 revisions

DiscussionPart

A part of the discussion.

public enum DiscussionPart 

The DiscussionPart enumeration has cases for each type of block-level CommonMark node as well as Swift Markup callouts.

Inheritance

Codable, CustomStringConvertible, Equatable

Initializers

init(from:)

public init(from decoder: Decoder) throws 

Enumeration Cases

blockQuote

A block quote.

case blockQuote(BlockQuote)

callout

A callout, such as a note, remark, or warning.

case callout(Callout)

codeBlock

A block of code.

case codeBlock(CodeBlock)

heading

A heading.

case heading(Heading)

htmlBlock

An HTML block.

case htmlBlock(HTMLBlock)

list

A list.

case list(List)

paragraph

A paragraph.

case paragraph(Paragraph)

thematicBreak

A thematic break.

case thematicBreak(ThematicBreak)

Properties

description

public var description: String 

Methods

encode(to:)

public func encode(to encoder: Encoder) throws 

Operators

==

public static func == (lhs: DiscussionPart, rhs: DiscussionPart) -> Bool