Skip to content

Commit

Permalink
Markdown with new line support[D
Browse files Browse the repository at this point in the history
  • Loading branch information
serhatEmirates committed Jul 1, 2022
1 parent 75fbe0d commit 7167f0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/ExpandableText/ExpandableText.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public struct ExpandableText: View {

@available(iOS 15, *)
var markdownText: AttributedString {
(try? AttributedString(markdown: text)) ?? AttributedString()
(try? AttributedString(markdown: text, options: AttributedString.MarkdownParsingOptions(interpretedSyntax: .inlineOnlyPreservingWhitespace))) ?? AttributedString()
}

var font: Font = .body
Expand Down

0 comments on commit 7167f0a

Please sign in to comment.