LavaUI docs GitHub

struct MarkdownDocument

Swift

struct MarkdownDocument

Display text with Markdown delimiters removed and styles mapped to character offsets in that display text.

Sources/LavaText/Markdown.swift:35

Constructors

init(text: String, spans: [MarkdownSpan])

Creates a document.

Sources/LavaText/Markdown.swift:43

Properties

var spans: [MarkdownSpan]

The styled ranges of text, sorted by start.

Sources/LavaText/Markdown.swift:40

var text: String

The text to show: the source with its Markdown delimiters removed, bullets drawn as • and quotes prefixed with │.

Sources/LavaText/Markdown.swift:38