aboutsummaryrefslogtreecommitdiff
path: root/Sources/NorgUI/Views/Blocks/ParagraphView.swift
blob: 2ad0dd508b32f774d45fe3def60945c944abc3fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import NorgKit
import SwiftUI

struct ParagraphView: View {
  @Environment(\.norgTheme) private var theme

  let content: [InlineSpan]

  var body: some View {
    Text(AttributedString(norg: content, theme: theme))
  }
}