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

Link

A link.

public final class Link: Node

From the CommonMark Spec:

A link contains link text (the visible text), a link destination (the URI that is the link destination), and optionally a link title.

Inheritance

Node, Visitable

Initializers

init(urlString:title:text:)

public convenience init(urlString: String, title: String? = nil, text string: String)

init(urlString:title:children:)

public convenience init(urlString: String?, title: String?, children: [Inline & Node] = [])

init(urlString:title:_:)

public convenience init(urlString: String?, title: String?, _ builder: () -> InlineConvertible)

Methods

accept(visitor:)

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