From 5816378f864a852b05d7f4054af5f4bcc3885599 Mon Sep 17 00:00:00 2001 From: cdez Date: Fri, 28 Mar 2025 21:21:49 -0700 Subject: [PATCH] Fix the webclient rendering markdown incorrectly? --- chatserver/templates/index.html | 7 +++++++ 1 file changed, 7 insertions(+) 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