fix: further fixes re content viewing and editing

This commit is contained in:
Per Stark
2025-04-30 14:16:46 +02:00
parent bcdd3628ef
commit 3f032c6930
4 changed files with 18 additions and 16 deletions

View File

@@ -18,12 +18,10 @@
breaks: true, gfm: true, headerIds: false, mangle: false,
smartLists: true, smartypants: true, xhtml: false
});
console.log('initialized');
}
function renderStaticMarkdown() {
document.querySelectorAll('.markdown-content').forEach(el => {
console.log('hello');
const raw = el.getAttribute('data-content') || '';
el.innerHTML = marked.parse(raw);
});