3.3.0
3.3.0
Released on 2026-06-07.
Added
- Added
cdMarkdownCodeLanguageattribute key. Applied to fenced code block ranges when a language hint is present (e.g.```swift). Value is aStringcontaining the language identifier exactly as written after the opening fence. - Added
CDMarkdownLinkReferenceelement for parsing reference-style links ([text][ref]with[ref]: urldefinitions). Reference definitions are stripped from the rendered output and resolved to.linkattributes at parse time. - Added
cdMarkdownLinkTitleattribute key for the optional title string from a reference link definition. Value is aString(without surrounding quotes or parentheses). Present only when the definition included a title. - Added
CDMarkdownThemestruct for unified styling of all parser elements. Bundles font, color, and per-element overrides (HeaderTheme,InlineTheme,LinkTheme) into a single value. - Added
CDMarkdownTheme.defaultandCDMarkdownTheme.systemDarkstatic factory themes. - Added
CDMarkdownParser.init(theme:)convenience initializer that configures the parser from aCDMarkdownTheme. - Added theme convenience initializers to
CDMarkdownViewandCDMarkdownText. - Added
markdownThemeSwiftUI environment key and.markdownTheme(_:)view modifier so a theme can be injected into an entire view hierarchy. - Added iOS 17+
textView(_:primaryActionFor:defaultAction:)delegate method toCDMarkdownView.Coordinatorfor correct link-tap behaviour on visionOS and iOS 17+.
Fixed
- Fixed reference link definitions inside fenced code blocks being incorrectly extracted as link definitions.
- Fixed
UITextItemInteractiondeprecation warning on visionOS. - Fixed
CDMarkdownTextnot re-parsing when themarkdownThemeenvironment value changes.