Releases: gonzalezreal/swift-markdown-ui
Releases · gonzalezreal/swift-markdown-ui
MarkdownUI 1.1.0
What's Changed
- Remove MarkdownStyle.Color by @gonzalezreal in #93
- Resolve fonts considering the environment's size category by @gonzalezreal in #94
- Use the environment's line spacing by @gonzalezreal in #95
Full Changelog: 1.0.0...1.1.0
1.0.0
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
- Set platform requirements
- Add snapshot test for markdown images
- Fix an issue with image loading
MarkdownUI 0.5.1
- Fix #39
MarkdownUI 0.5.0
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
-
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
- Update AttributedText dependency
MarkdownUI 0.3.3
- Add support for macCatalyst
- Update view when document changes
MarkdownUI 0.3.2
- Update NetworkImage dependency to 2.1.0
MarkdownUI 0.3.1
- Update NetworkImage dependency to 2.0.0