mirror of
https://github.com/khoaliber/khoj.git
synced 2026-03-06 13:22:12 +00:00
Use break-words in the train of thought for better formatting
This commit is contained in:
@@ -312,10 +312,10 @@ export function TrainOfThought(props: TrainOfThoughtProps) {
|
|||||||
markdownRendered = markdownRendered.replace(/<h[1-6].*?<\/h[1-6]>/g, "");
|
markdownRendered = markdownRendered.replace(/<h[1-6].*?<\/h[1-6]>/g, "");
|
||||||
return (
|
return (
|
||||||
<div
|
<div
|
||||||
className={`${styles.trainOfThoughtElement} break-all items-center ${props.primary ? "text-gray-400" : "text-gray-300"} ${styles.trainOfThought} ${props.primary ? styles.primary : ""}`}
|
className={`${styles.trainOfThoughtElement} break-words items-center ${props.primary ? "text-gray-400" : "text-gray-300"} ${styles.trainOfThought} ${props.primary ? styles.primary : ""}`}
|
||||||
>
|
>
|
||||||
{icon}
|
{icon}
|
||||||
<div dangerouslySetInnerHTML={{ __html: markdownRendered }} />
|
<div dangerouslySetInnerHTML={{ __html: markdownRendered }} className="break-words" />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user