Post

Replies

Boosts

Views

Activity

AttributedString markdown missing elements in Swift
Not all markdown elements work. The string will work if I do: "hello world" Italics "hello world" Bold But NOT "hello world" Bold & Italics There are others that also don't work such as headers and numbered lists.         let string: String = "***hello world***"         if let attributedString: AttributedString = try? AttributedString(markdown: string) {             let attributedText: NSMutableAttributedString = NSMutableAttributedString(attributedString)             myLabel.text = nil             myLabel.attributedText = attributedText         }
Topic: UI Frameworks SubTopic: UIKit Tags:
4
1
1.9k
Dec ’22
AttributedString markdown missing elements in Swift
Not all markdown elements work. The string will work if I do: "hello world" Italics "hello world" Bold But NOT "hello world" Bold & Italics There are others that also don't work such as headers and numbered lists.         let string: String = "***hello world***"         if let attributedString: AttributedString = try? AttributedString(markdown: string) {             let attributedText: NSMutableAttributedString = NSMutableAttributedString(attributedString)             myLabel.text = nil             myLabel.attributedText = attributedText         }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
4
Boosts
1
Views
1.9k
Activity
Dec ’22