diff --git a/customChatWidget/package-lock.json b/customChatWidget/package-lock.json index f583b1e..60872df 100644 --- a/customChatWidget/package-lock.json +++ b/customChatWidget/package-lock.json @@ -2446,10 +2446,11 @@ } }, "node_modules/cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, + "license": "MIT", "dependencies": { "path-key": "^3.1.0", "shebang-command": "^2.0.0", @@ -6228,9 +6229,9 @@ } }, "cross-spawn": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.3.tgz", - "integrity": "sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w==", + "version": "7.0.6", + "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz", + "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==", "dev": true, "requires": { "path-key": "^3.1.0", diff --git a/mobileChatExamples/iOSChatExample/AmazonConnectChatIOSDemo/Views/ChatMessageView.swift b/mobileChatExamples/iOSChatExample/AmazonConnectChatIOSDemo/Views/ChatMessageView.swift index a2fa7e0..b843ebf 100644 --- a/mobileChatExamples/iOSChatExample/AmazonConnectChatIOSDemo/Views/ChatMessageView.swift +++ b/mobileChatExamples/iOSChatExample/AmazonConnectChatIOSDemo/Views/ChatMessageView.swift @@ -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)