Skip to content

3.0.0

Latest

Choose a tag to compare

@LiYanan2004 LiYanan2004 released this 05 Jul 07:48

Breaking Changes

  • Raised minimum deployment targets to macOS 13, iOS 16, tvOS 16, watchOS 9, and visionOS 1.
  • Removed MarkdownViewStyle and markdownViewStyle(_:).
  • Removed MarkdownContent from the public rendering API. Pass markdown strings directly to MarkdownView and MarkdownText, or use MarkdownReader to share a parsed result.
  • Removed MarkdownView(_ url: URL) and MarkdownReader(_ url: URL, contents:). Load the file content first, then initialize the view with the markdown string.
  • Updated MarkdownReader to pass MarkdownParseResult into its content builder, and MarkdownView now accepts MarkdownParseResult directly.
  • Renamed MarkdownTableOfContent to MarkdownTableOfContentReader, and its content builder now uses [Markdown.Heading].
  • Changed MarkdownTableStyleConfiguration.Table.fallback to a deprecated empty compatibility view. Custom table styles should now be built from configuration.table, configuration.table.header, and configuration.table.rows.
  • Updated MarkdownFontGroup to use CustomCTFontConvertible values.

New Features

  • Added MarkdownText for continuous text selection on iOS and macOS.
  • Added CustomCTFontConvertible support for component font configuration, including platform fonts and CTFont.
  • Added StreamingMarkdownReader and StreamingMarkdownSource for efficient streaming markdown rendering with incremental parsing.
  • Added markdownLinksUnderlined(_:) to control link underline styling.
  • Added MarkdownTableOfContentReader support for generating a table of contents from a markdown string, Markdown.Document, or MarkdownParseResult, plus added Equatable to improve SwiftUI rendering performance (requires manual opt-in).

Default Styles

  • Polished default code block style
  • Polished default table style

Dependencies

  • Added RichText
  • Replace LateXSwiftUI with SwiftMath
  • Updated swift-markdown to 0.8.0
  • Updated Highlightr to 2.3.0

For more information about this major release, see MarkdownView 3 Release Note