Skip to content

Commit

Permalink
Fixed multiple line issues in ios example (#250)
Browse files Browse the repository at this point in the history
* Fixed multiple line issues in ios example

* fixed dependency vulnerability
  • Loading branch information
mrajatttt authored Nov 20, 2024
1 parent b548a6b commit 71234e0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
13 changes: 7 additions & 6 deletions customChatWidget/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ struct ReceiverChatBubble: View {

var attributedText: AttributedString {
do {
return try AttributedString(markdown: message.text)
return try AttributedString(markdown: message.text,
options: .init(interpretedSyntax: .inlineOnlyPreservingWhitespace))
} catch {
print("Error parsing markdown for message text: \(error)")
return AttributedString(message.text)
Expand Down

0 comments on commit 71234e0

Please sign in to comment.