From 5dffb407d52586915dd647f2817874e9b14d702f Mon Sep 17 00:00:00 2001 From: The-Best-Codes Date: Fri, 29 Nov 2024 14:31:14 -0600 Subject: [PATCH] [REVERT] remove `
` correction due to bugs (for now) --- public/pages/index/modules/ui.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/public/pages/index/modules/ui.js b/public/pages/index/modules/ui.js index 1e04551..9d5a41f 100644 --- a/public/pages/index/modules/ui.js +++ b/public/pages/index/modules/ui.js @@ -65,7 +65,7 @@ export class UIManager { messageElement.className = "bg-gray-50 dark:bg-gray-700 rounded-lg p-4 transition-colors duration-200 mb-4 last:mb-0 max-w-full overflow-auto"; - // First handle headers and other block-level elements + /* // First handle headers and other block-level elements const preprocessed = msg.content.split('\n').map(line => { // If line starts with #, treat it as a header if (line.trim().startsWith('#')) { @@ -73,7 +73,9 @@ export class UIManager { } // Otherwise replace newline with
return line + '
'; - }).join('\n'); + }).join('\n'); */ + + const preprocessed = msg.content; const renderedContent = marked.parse(preprocessed);