minor changes

This commit is contained in:
Daniel Avila 2023-02-26 14:10:44 -05:00
parent 8e5148b390
commit 1bba86f2e2
5 changed files with 17 additions and 4267 deletions

View file

@ -70,6 +70,7 @@ export default function Message({
</div>
) : (
<div className="flex min-h-[20px] flex-col items-start gap-4 whitespace-pre-wrap">
{/* <div className={`${blinker ? 'result-streaming' : ''} markdown prose dark:prose-invert light w-full break-words`}> */}
<div className="markdown prose dark:prose-invert light w-full break-words">
{notUser ? wrapText(text) : text}
{blinker && <span className="result-streaming"></span>}

View file

@ -39,9 +39,6 @@ export default function TextWrapper({ text }) {
// to match unenclosed code blocks
if (text.match(/```/g)?.length === 1) {
// if (text.match(/```/g)?.length === 1) {
// const splitString = text.split('```')[1].split(/\s+/).slice(1).join('').trim();
// embedTest = splitString.length > 0;
embedTest = true;
}