This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 10
Node
mattt edited this page Dec 21, 2020
·
11 revisions
A CommonMark node.
public class Node: Codable
Codable
, CustomStringConvertible
, Equatable
, Hashable
public required convenience init(from decoder: Decoder) throws
The line and column range of the element in the document.
var range: ClosedRange<Document.Position>
The parent of the element, if any.
var parent: Node?
var description: String
Render a document into a given format with the specified options.
public func render(format: RenderingFormat, options: RenderingOptions = [], width: Int = 0) -> String
- format: The rendering format
- options: The rendering options
- width: The column width used to wrap lines for rendered output (
.commonmark
,.man
, and.latex
formats only). Must be a positive number. Pass0
to prevent line wrapping.
The rendered text.
public func encode(to encoder: Encoder) throws
public static func ==(lhs: Node, rhs: Node) -> Bool
public func hash(into hasher: inout Hasher)
Generated at 2021-03-03T19:19:22+0000 using swift-doc 1.0.0-beta.5.
Types
- BlockQuote
- Code
- CodeBlock
- CommonMarkBuilder
- Document
- Document.Error
- Document.ParsingOptions
- Document.Position
- Emphasis
- ForEach
- Fragment
- HTMLBlock
- HardLineBreak
- Heading
- Image
- Link
- List
- List.Delimiter
- List.Item
- List.Kind
- Node
- Node.RenderingFormat
- Node.RenderingOptions
- Paragraph
- RawHTML
- Section
- SoftLineBreak
- StringBuilder
- Strong
- Text
- ThematicBreak
- VisitorContinueKind