Skip to content

MarkdownUI 0.4.0

Compare
Choose a tag to compare
@gonzalezreal gonzalezreal released this 12 Feb 21:12
· 178 commits to main since this release
d7da53e
  • CommonMark parsing moved to gonzalezreal/SwiftCommonMark

  • SwiftCommonMark adds an embedded 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"
        }
    }