Commit Graph

2 Commits

Author SHA1 Message Date
6cb3ae8079 Progress. 2024-12-23 19:56:25 +01:00
79026fd96c Review first part. 2024-12-23 17:55:04 +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 } });