From 2661cfa5faabfbedcccc2ca132e18b98e9649911 Mon Sep 17 00:00:00 2001 From: woodchen Date: Fri, 19 Jan 2024 14:34:32 +0800 Subject: [PATCH] =?UTF-8?q?fix:markdown=E6=8E=92=E7=89=88=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.html | 4 ++-- index.md | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index aa79e79..e7638cb 100644 --- a/index.html +++ b/index.html @@ -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)); diff --git a/index.md b/index.md index fb2be6c..62fcc51 100644 --- a/index.md +++ b/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` 文件中给出的链接来实现一个随机文件