3.2.0
3.2.0
Released on 2026-05-31.
Added
- Added Swift 6 language mode (
swiftLanguageModes: [.v6]) toPackage.swift. - Added
CDMarkdownTaskListelement for parsing GFM task list items (- [ ]/- [x]). - Added
CDMarkdownHorizontalRuleelement for parsing horizontal rules (---,***,___). - Added inline markdown parsing inside GFM table cells (bold, italic, links, inline code).
- Added
disabledElementTypes,disable(_:), andenable(_:)toCDMarkdownParserfor opting out of individual default elements. - Added
insertCustomElement(_:before:)andinsertCustomElement(_:after:)toCDMarkdownParserfor precise pipeline positioning. - Added accessibility attribute keys (
cdMarkdownHeadingLevel,cdMarkdownIsCode,cdMarkdownIsBlockquote) andaccessibilityAttributedString(from:)helper onCDMarkdownParser. - Added
CDMarkdownNSLayoutManager,CDMarkdownNSTextView, andCDMarkdownNSLabel— AppKit UI components for macOS. - Added
CDMarkdownTextandCDMarkdownView— SwiftUI wrappers for iOS, tvOS, macOS, watchOS, and visionOS. - Added
markdownParserSwiftUI environment key and.markdownParser(_:)view modifier.
Updated
- Deprecated synchronous
parse(_:)overloads in favour of the async overloads.