Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.
mattt edited this page Apr 10, 2020 · 11 revisions

Node

A CommonMark node.

open class Node

Inheritance

CustomStringConvertible, Equatable, Hashable

Properties

cmark_node_type

var cmark_node_type: cmark_node_type

cmark_node

A pointer to the underlying cmark_node for the node.

let cmark_node: OpaquePointer

managed

Whether the underlying cmark_node should be freed upon deallocation.

var managed: Bool

range

The line and column range of the element in the document.

var range: ClosedRange<Document.Position>

parent

The parent of the element, if any.

var parent: Node?

description

var description: String

Methods

==(lhs:rhs:)

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

hash(into:)

public func hash(into hasher: inout Hasher)
Clone this wiki locally