Fix the webclient rendering markdown incorrectly?

This commit is contained in:
Charles Descamps 2025-03-28 21:21:49 -07:00
parent 1c185b309f
commit 5816378f86

View file

@ -359,6 +359,13 @@
// Apply saved theme on page load // Apply saved theme on page load
const savedTheme = localStorage.getItem('theme') || 'dark-mode'; // Default to dark mode const savedTheme = localStorage.getItem('theme') || 'dark-mode'; // Default to dark mode
document.body.classList.add(savedTheme); 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
});
</script> </script>
</body> </body>
</html> </html>