import NorgKit import SwiftUI struct HeadingView: View { @Environment(\.norgTheme) private var theme let level: Int let status: TaskStatus? let content: [InlineSpan] let line: Int let onSetStatus: (Int, TaskStatus) -> Void var body: some View { let font = theme.heading(level) Group { if let status { BlockTaskRow( status: status, content: content, font: font, line: line, onSetStatus: onSetStatus) } else { Text(AttributedString(norg: content, baseFont: font, theme: theme)) .font(font) } } .padding(.top, theme.headingTopPadding) } }