Skip to content

Releases: LiYanan2004/MarkdownView

2.6.0

30 Dec 04:58

Choose a tag to compare

New features

  • Add support for inline and block HTML content rendering (#119)

Resolved issues

  • Fixed: backslashes are escaped that causes mis-align with common-mark specs (#123)
  • Fixed: random crashes initiated from PreferenceKey.defaultValue due to SwiftUI internal actor assertion failure (#128)
  • Fixed: content after an at sign (@) may parsed as block directive even if math rendering is turned off and no custom renderer is attached (#130)

Full Changelog: 2.5.2...2.6.0

2.5.2

21 Oct 03:30
32a31bd

Choose a tag to compare

What's Changed

  • Fixed: inter-paragraph spacing (#120)

Full Changelog: 2.5.1...2.5.2

2.5.1

19 Oct 17:06
54ac5fd

Choose a tag to compare

What's Changed

  • Fix text formatting, including bold, italic, strikethrough, etc. (#116)

Full Changelog: 2.5.0...2.5.1

2.5.0

26 Aug 08:21
5146c33

Choose a tag to compare

What's Changed

  • Improve text layout performance (#100)
  • Fix crashes related to PreferenceKey actor boundaries (#103)
  • Fix crashes on mobile devices when having very long text (#111)

Full Changelog: 2.4.0...2.5.0

2.4.0

28 Apr 07:07

Choose a tag to compare

What's Changed

Resolved issues

  • Math representation within a code block will no longer be transformed (#79)
  • Fixed issues with flexible-SVG rendering (#94)

New features

  • You can customize style for block quotes (#81)
  • You can set font separately for both inline math & display math (#83)
  • Code block now supports horizontal scrolling (#74)
  • Display & inline math now supports horizontal scrolling when needed (#84)
  • Table cell background & overlay are customizable (#86, #88)
  • Header puddings are customizable (#95, #96)
  • Add Github table style & Github block quote style (#87)

Full Changelog: 2.3.1...2.4.0

2.3.1

14 Apr 10:41
485908f

Choose a tag to compare

What's Changed

  • Fixed: MarkdownView may still render math equations even if you specify .markdownMathRenderingEnabled(false) (#67)

Full Changelog: 2.3.0...2.3.1

2.3.0

13 Apr 11:50

Choose a tag to compare

What's Changed

⚠️ Breaking Changes

  • Already deprecated APIs has been removed
  • BlockDirectiveDisplayable has been renamed to BlockDirectiveRenderer
    • makeView(arguments:text:) has been changed to makeBody(configuration:)
  • ImageDisplayable has been renamed to MarkdownImageRenderer
    • makeImage(url:alt:) has been changed to makeBody(configuration:)
  • View.imageProvider(_:forURLScheme:) has been renamed to View.markdownImageRenderer(_:forURLScheme:)
  • View.blockDirectiveProvider(_:for:) has been renamed to View.blockDirectiveRenderer(_:for:)

New Features

  • Support "display math" rendering (#62, #64)

Resolved Issues

  • App may crash on old platforms when rendering tables (#60)

Full Changelog: 2.2.1...2.3.0

2.2.1

07 Apr 11:39
5d37548

Choose a tag to compare

What's changed

  • DefaultCodeBlockStyle has been updated (#58)

Resolved issues

  • DemoApp is not compilable on iOS target (#56)
  • Table render issue (affecting iOS 15, macOS 12, tvOS 15 and watchOS 8)

2.2.0

02 Apr 06:18

Choose a tag to compare

New Features

  • Drop minimum target back to iOS 15, macOS 12, etc (#47)
  • Add CodeBlockStyle protocol for code block customizations (#48)
  • Add caches for NetworkImage & MarkdownViewRenderer (#55)

Resolved issues

  • DefaultCodeBlockStyle may cause high CPU usage and block main thread during text streaming (#51)

Full Changelog: 2.1.1...2.2.0

2.1.1

12 Mar 13:32

Choose a tag to compare

What's Changed

  • Fixed issue where backslashes () will never be correctly escaped. (#46)

Full Changelog: 2.1.0...2.1.1