This commit is contained in:
th committed 2026-04-10 11:46:15 +02:00
1 parent cc97754ae6
commit 86508ffcca
13 files changed
+945 -35

No files matched your search

+5
View File
@@ -168,6 +168,11 @@ export function renderMd(src) {
return html;
}
// Expose to plugins via the hyprcrd API
if (typeof window !== 'undefined' && window.hyprcrd?.markdown) {
window.hyprcrd.markdown.render = renderMd;
}
export function addCodeCopyButtons(container) {
if (!container) return;
container.querySelectorAll('pre > code').forEach(code => {