SwiftCommonMark adds a DSL to create CommonMark documents. This allows a new syntax when constructing Markdown views:
Markdown {
Heading(level: 2) {
"Result builders are cool!"
}
"Sometimes you want bullet points:"
List {
"Start a line with a star"
"Profit!"
}
"Sometimes you want numbered lists:"
List(start: 1) {
"One"
"Two"
"Three"
}
}
SwiftCommonMark adds a DSL to create CommonMark documents. This allows a new syntax when constructing
Markdown
views: