💄(shufeng2012) 更改ui并添加Markdown渲染

This commit is contained in:
shufeng2012 committed 2026-07-22 14:45:51 +08:00
1 parent 244c67d5f6
commit 0de0878876
2 files changed
+46 -79

No files matched your search

+7
View File
@@ -92,6 +92,13 @@ async function addNode(token, pid, title, content) {
}
}
function renderMarkdown(element, content) {
/*
Markdown渲染
*/
const md = window.markdownit();
element.innerHTML = md.render(content);
}
var article_title = document.getElementById('article-title');
var article_content = document.getElementById('article-content');