diff --git a/package-lock.json b/package-lock.json index fe3f2bac67..9ddc16e9fe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10462,6 +10462,7 @@ "version": "8.0.7", "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-8.0.7.tgz", "integrity": "sha512-bvWbzG4MtOU62XqBx3Xx+zB2raaFFsq4mYiAzfjXJMEz2sixgeAfraA3tvzULF02ZdOMUOKTBFFaZJDDrq+BJQ==", + "license": "MIT", "dependencies": { "@types/hast": "^2.0.0", "@types/prop-types": "^15.0.0", diff --git a/src/components/Chat/Chat.tsx b/src/components/Chat/Chat.tsx index b018ff95d9..75f4c3ee1c 100644 --- a/src/components/Chat/Chat.tsx +++ b/src/components/Chat/Chat.tsx @@ -8,6 +8,7 @@ import { init } from 'emoji-mart'; import Linkify from 'react-linkify'; import { SecureLink } from 'react-secure-link'; import styles from './Chat.module.css'; +import Markdown from 'react-markdown'; import { formatTimestamp, @@ -453,6 +454,7 @@ const ChatMessage = ({ {!cmd && msg} + {msg.startsWith('![') && {msg}}
{