Skip to content

Commit 074081a

Browse files
Update Sources/SwiftDocC/Model/Rendering/Content/RenderBlockContent.swift
Co-authored-by: David Rönnqvist <[email protected]>
1 parent 8028002 commit 074081a

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Sources/SwiftDocC/Model/Rendering/Content/RenderBlockContent.swift

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,13 @@ public enum RenderBlockContent: Equatable {
161161
}
162162

163163
public struct LineAnnotation: Equatable, Codable {
164-
var style: String
165-
var range: Range<Position>
164+
public var style: String
165+
public var range: Range<Position>
166+
167+
public init(style: String, range: Range<Position>) {
168+
self.style = style
169+
self.range = range
170+
}
166171
}
167172

168173
public enum OptionName: String, CaseIterable {

0 commit comments

Comments
 (0)