diff --git a/chatserver/templates/index.html b/chatserver/templates/index.html index 05186c8..efeb09c 100644 --- a/chatserver/templates/index.html +++ b/chatserver/templates/index.html @@ -359,6 +359,13 @@ // Apply saved theme on page load const savedTheme = localStorage.getItem('theme') || 'dark-mode'; // Default to dark mode document.body.classList.add(savedTheme); + + // Set options for marked.js + marked.setOptions({ + breaks: false, // Disable line breaks + gfm: true, // Enable GitHub Flavored Markdown + headerIds: false // Disable header IDs + }); \ No newline at end of file