Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
func getAttributedString(_ markdown: String) -> AttributedString {
do {
let attributedString = try AttributedString(markdown: markdown)
return attributedString
} catch {
print("Couldn't parse: \(error)")
return AttributedString("Error parsing markdown")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment