import NorgKit import SwiftUI struct ListItemView: View { @Environment(\.norgTheme) private var theme let marker: String let status: TaskStatus? let content: [InlineSpan] let line: Int let onSetStatus: (Int, TaskStatus) -> Void var body: some View { HStack(alignment: .firstTextBaseline, spacing: 8) { if let status { BlockTaskRow( status: status, content: content, font: theme.body, line: line, onSetStatus: onSetStatus ) } else { Text(marker) .foregroundStyle(.secondary) .monospacedDigit() Text(AttributedString(norg: content, theme: theme)) } } } }