Skip to content

Commit e2cb6ad

Browse files
authored
fix(md): 修复 md 标签中的错误引用和英文语法问题 (#968)
1 parent 28614e5 commit e2cb6ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/tags/md.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ hexo.extend.tag.register('md', function(args) {
1212
const loadMarkdown = (url) => {
1313
if (!window.fetch) {
1414
contentEl.innerHTML =
15-
'<div style="font-size: 24px"><p>Your browser outdated. Please use the latest version of Chrome or Firefox!</p><p>您的浏览器版本过低,请使用最新版的 Chrome 或 Firefox 浏览器!</p></div>';
15+
'<div style="font-size: 24px"><p>Your browser is outdated. Please use the latest version of Chrome or Firefox!</p><p>您的浏览器版本过低,请使用最新版的 Chrome 或 Firefox 浏览器!</p></div>';
1616
} else {
1717
contentEl.innerHTML =
1818
'<div style="font-size: 24px">Loading ... | 加载中。。。</div>';
@@ -34,7 +34,7 @@ hexo.extend.tag.register('md', function(args) {
3434
headers,
3535
};
3636
} else {
37-
throw new Error(JSON.stringify(json.error));
37+
throw new Error("Request failed with status " + status + ": " + data);
3838
}
3939
})
4040
.then((resp) => {

0 commit comments

Comments
 (0)