Skip to content

Commit d8fc5eb

Browse files
committed
【新增】更新样式和字体并优化代码
- 更新 markdown-html 版本至 1.11.0 - 移除不必要的 console.log 语句 - 更新全局字体设置,增加多个中文字体选项 - 添加 Maple Mono CN 字体样式表链接
1 parent 5258a45 commit d8fc5eb

1 file changed

Lines changed: 17 additions & 5 deletions

File tree

index.html

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!doctype html>
22

33
<html>
4-
<markdown-html version="1.10.2" author="PJ568" repo="https://github.com/PJ-568/markdown.html"
4+
<markdown-html version="1.11.0" author="PJ568" repo="https://github.com/PJ-568/markdown.html"
55
license="CC BY-SA 4.0 International"></markdown-html>
66

77
<head>
@@ -432,7 +432,6 @@
432432
} else {
433433
linkHref = getPath() + linkHref;
434434
}
435-
console.log(isRelativePath(linkHref), linkHref, pValue);
436435
linkHref = new URL(linkHref, 'http://example.com').pathname;
437436
}
438437
const newLink = `[${linkText}](${window.location.pathname}?p=${linkHref})`;
@@ -623,12 +622,23 @@
623622
<title>加载中</title>
624623
<style>
625624
/* 全局 */
626-
* {
627-
font-family: 'Exo', sans-serif;
625+
626+
:root,
627+
html,
628+
body,
629+
button,
630+
input,
631+
select,
632+
textarea,
633+
code,
634+
pre {
635+
font-family: 'Sarasa Term SC Nerd', 'Maple Mono CN', Ubuntu, Roboto, 'Open Sans', 'Microsoft YaHei', Arial, sans-serif;
628636
text-decoration: none;
629637
}
630638

631-
:root {
639+
:root,
640+
html,
641+
body {
632642
background-color: #e6e6e6;
633643
}
634644

@@ -929,6 +939,8 @@
929939
}
930940
}
931941
</style>
942+
<link rel="stylesheet"
943+
href="https://chinese-fonts-cdn.deno.dev/packages/maple-mono-cn/dist/MapleMono-CN-Regular/result.css" />
932944
</head>
933945

934946
<body>

0 commit comments

Comments
 (0)