blob: bebe60bd4b32f3054fea43e6648ad328d4d5cbc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
/// A contiguous run of text sharing the same style and link.
public struct InlineSpan: Equatable, Hashable, Sendable, Codable {
public var text: String
public var styles: InlineStyle
public var link: InlineLink?
public init(text: String, styles: InlineStyle = [], link: InlineLink? = nil) {
self.text = text
self.styles = styles
self.link = link
}
}
|