fix:markdown排版错误

This commit is contained in:
woodchen 2024-01-19 14:34:32 +08:00
parent 340ff4f091
commit 2661cfa5fa
2 changed files with 3 additions and 3 deletions

View File

@ -103,14 +103,14 @@
html: true
});
// 异步加载 readme.md 文件内容
// 异步加载 index.md 文件内容
fetch('https://raw.githubusercontent.com/woodchen-ink/Random-Api/master/index.md')
.then(response => response.text())
.then(markdownText => {
// 渲染 Markdown 内容
document.getElementById('markdown-content').innerHTML = md.render(markdownText);
})
.catch(error => console.error('Error loading readme.md:', error));
.catch(error => console.error('Error loading index.md:', error));
</script>
</body>