mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
chore: delegate response text parsing to one location
This commit is contained in:
parent
a0c94715ce
commit
84b104e65f
5 changed files with 22 additions and 23 deletions
|
|
@ -142,7 +142,7 @@ export default function TextWrapper({ text }) {
|
|||
// map over the parts and wrap any text between tildes with <code> tags
|
||||
const parts = text.split(markupRegex);
|
||||
const codeParts = inLineWrap(parts);
|
||||
return <>{codeParts}</>; // return the wrapped text
|
||||
return <Markdown options={mdOptions}>{codeParts}</Markdown>; // return the wrapped text
|
||||
} else {
|
||||
return <Markdown options={mdOptions}>{text}</Markdown>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue