I had to use the following for it to work:
AttributedString(markdown: "Your text", options: AttributedString.MarkdownParsingOptions(interpretedSyntax: .inlineOnlyPreservingWhitespace))
I had to use the following for it to work:
AttributedString(markdown: "Your text", options: AttributedString.MarkdownParsingOptions(interpretedSyntax: .inlineOnlyPreservingWhitespace))