From 501fdce29e4d2c46c4708ad7f44056878e0db3fa Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Tue, 16 Jun 2026 12:08:21 +0200 Subject: Initial extraction from Norganize --- Sources/NorgKit/Models/InlineSpan.swift | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Sources/NorgKit/Models/InlineSpan.swift (limited to 'Sources/NorgKit/Models/InlineSpan.swift') diff --git a/Sources/NorgKit/Models/InlineSpan.swift b/Sources/NorgKit/Models/InlineSpan.swift new file mode 100644 index 0000000..bebe60b --- /dev/null +++ b/Sources/NorgKit/Models/InlineSpan.swift @@ -0,0 +1,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 + } +} -- cgit