Skip to content

Releases: gonzalezreal/swift-markdown-ui

MarkdownUI 1.1.0

27 Feb 07:21
4c16430
Compare
Choose a tag to compare

What's Changed

Full Changelog: 1.0.0...1.1.0

1.0.0

16 Jan 14:50
Compare
Choose a tag to compare

What's Changed

  • Breaking change: New stable API and simplified customization appearance
  • Changed: New rendering implementation.
  • Added: Enable loading images from bundles
  • Added: Render thematic breaks
  • Added: Enable custom markdown link handling
  • Added: Make text not selectable on iOS
  • Changed: Improved list rendering.
  • Removed: NSAttributedString based HTML block rendering
  • Infrastructure: Remove watchOS scheme, remove unnecessary availability attributes and replace SwiftFormat with swift-format.
  • Infrastructure: Use Xcode 13.2 for CI
  • Infrastructure: New demo app with tvOS and Catalyst targets
  • Infrastructure: Improved README and documentation
  • Bug fixed: View update issues on iOS 15

MarkdownUI 0.5.2

29 Aug 09:56
Compare
Choose a tag to compare
  • Set platform requirements
  • Add snapshot test for markdown images
  • Fix an issue with image loading

MarkdownUI 0.5.1

27 Feb 18:26
Compare
Choose a tag to compare

MarkdownUI 0.5.0

25 Feb 22:21
cae6f69
Compare
Choose a tag to compare

Breaking change

MarkdownStyle is now a protocol with a default implementation DefaultMarkdownStyle. This new protocol has methods to customise the attributes of each of the different blocks and inlines in a markdown file.

To customise the font, foreground color, code font or heading font sizes you can use the markdownStyle(_:) view modifier:

Markdown(
    #"""
    ## Inline code
    If you have inline code blocks, wrap them in backticks: `var example = true`.
    """#
)
.markdownStyle(
    DefaultMarkdownStyle(
        font: .system(.body, design: .serif),
        codeFontName: "Menlo",
        codeFontSizeMultiple: 0.88
    )
)

MarkdownUI 0.4.0

12 Feb 21:12
d7da53e
Compare
Choose a tag to compare
  • 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"
        }
    }

MarkdownUI 0.3.4

25 Jan 15:50
Compare
Choose a tag to compare
  • Update AttributedText dependency

MarkdownUI 0.3.3

16 Jan 20:21
Compare
Choose a tag to compare
  • Add support for macCatalyst
  • Update view when document changes

MarkdownUI 0.3.2

14 Jan 17:42
Compare
Choose a tag to compare
  • Update NetworkImage dependency to 2.1.0

MarkdownUI 0.3.1

13 Jan 17:06
Compare
Choose a tag to compare
  • Update NetworkImage dependency to 2.0.0