diff --git a/web/src/app/chat/message/Messages.tsx b/web/src/app/chat/message/Messages.tsx index b80c5b5bf..b188c128e 100644 --- a/web/src/app/chat/message/Messages.tsx +++ b/web/src/app/chat/message/Messages.tsx @@ -518,22 +518,9 @@ export const HumanMessage = ({ ) : typeof content === "string" ? ( - ( - - ), - }} - remarkPlugins={[remarkGfm]} - > +
{content} - +
) : ( content )} diff --git a/web/src/app/globals.css b/web/src/app/globals.css index 37d92f36a..c810e82cf 100644 --- a/web/src/app/globals.css +++ b/web/src/app/globals.css @@ -43,3 +43,8 @@ width: 8px; /* Vertical scrollbar width */ height: 8px; /* Horizontal scrollbar height */ } + +/* Used to create alternatie to React Markdown */ +.preserve-lines { + white-space: pre-wrap; /* Preserves whitespace and wraps text */ +}