Fix the webclient rendering markdown incorrectly?
This commit is contained in:
parent
1c185b309f
commit
5816378f86
1 changed files with 7 additions and 0 deletions
|
|
@ -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>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue