diff --git a/Sources/ExpandableText/ExpandableText.swift b/Sources/ExpandableText/ExpandableText.swift index e083c61..5055ef3 100644 --- a/Sources/ExpandableText/ExpandableText.swift +++ b/Sources/ExpandableText/ExpandableText.swift @@ -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