Commit Graph

2 Commits

Author SHA1 Message Date
09cf5f2b39 Progress. 2024-12-23 20:03:11 +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 } });