mirror of
https://github.com/woodchen-ink/Random-Api.git
synced 2025-07-18 14:02:03 +08:00
fix:markdown排版错误
This commit is contained in:
parent
340ff4f091
commit
2661cfa5fa
@ -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>
|
||||
|
||||
|
2
index.md
2
index.md
@ -12,7 +12,7 @@
|
||||
|
||||
## 原理
|
||||
|
||||
> github地址: [https://github.com/woodchen-ink/Random-Api](https://github.com/woodchen-ink/Random-Api)
|
||||
> github地址: [https://github.com/woodchen-ink/Random-Api](https://github.com/woodchen-ink/Random-Api)
|
||||
> 我的博客说明:[https://woodchen.ink/archives/1705367469203](https://woodchen.ink/archives/1705367469203)
|
||||
|
||||
使用cloudflare worker配合github,实现获取path与csv_path关系,从 `url.csv` 文件中给出的链接来实现一个随机文件
|
||||
|
Loading…
x
Reference in New Issue
Block a user