💄(shufeng2012) 更改ui并添加Markdown渲染
This commit is contained in:
1 parent
244c67d5f6
commit
0de0878876
2 files changed
+46
-79
No files matched your search
@@ -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');
|
||||
|
||||
Reference in new issue
Block a user