Commit Graph

1 Commits

Author SHA1 Message Date
Wilhelm Oks
9d61167e81 Models WIP: Profile 2024-12-13 12:35:30 +01:00
marked.setOptions({ highlight: function (code, lang) { // Use highlight.js to highlight the code const language = hljs.getLanguage(lang) ? lang : 'plaintext'; // Fallback to 'plaintext' if no language is found return hljs.highlight(language, code).value; // Return the highlighted code } });