Comment on SwiftUI: Markdown support for string variables You need to pass an option to preserve the whitespace like so: AttributedString(markdown: "Your *text*", options: MarkdownParsingOptions(interpretedSyntax: .inlineOnlyPreservingWhitespace)) App & System Services General Aug ’21