LavaUI docs GitHub

struct MarkdownSpan

Swift

struct MarkdownSpan

A styled range of a MarkdownDocument's display text.

Sources/LavaText/Markdown.swift:20

Constructors

init(range: Range<Int>, style: MarkdownSpanStyle)

Creates a span.

Sources/LavaText/Markdown.swift:27

Properties

var range: Range<Int>

The styled characters, as character offsets into the display text.

Sources/LavaText/Markdown.swift:22

var style: MarkdownSpanStyle

How the range is styled.

Sources/LavaText/Markdown.swift:24