Commit Graph

3 Commits

Author SHA1 Message Date
Wilhelm Oks
3824735fe1 added Sendable and other corrections 2024-12-22 17:24:48 +01:00
Wilhelm Oks
19c645e59c Models WIP 2024-12-11 17:00:16 +01:00
Wilhelm Oks
2e4d605ecc Models WIP: AttachedImage, Link, Rant.Weekly, User.Avatar 2024-12-11 11:54:12 +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 } });