                    };

                    // Configure marked once
                    marked.setOptions({
                         gfm: true,
                         breaks: false, // Consider true if you want single newlines to be <br>
                         pedantic: false,
                         smartLists: true,
                         smartypants: false,
                         // Optional: Add highlight.js if you want syntax highlighting in code blocks
                         // highlight: 