1
0
Эх сурвалжийг харах

【新增】更新样式和字体并优化代码

- 更新 markdown-html 版本至 1.11.0
- 移除不必要的 console.log 语句
- 更新全局字体设置,增加多个中文字体选项
- 添加 Maple Mono CN 字体样式表链接
PJ568 1 жил өмнө
parent
commit
a1157bbfb2
1 өөрчлөгдсөн 17 нэмэгдсэн , 5 устгасан
  1. 17 5
      index.html

+ 17 - 5
index.html

@@ -1,7 +1,7 @@
 <!doctype html>
 
 <html>
-<markdown-html version="1.10.2" author="PJ568" repo="https://github.com/PJ-568/markdown.html"
+<markdown-html version="1.11.0" author="PJ568" repo="https://github.com/PJ-568/markdown.html"
   license="CC BY-SA 4.0 International"></markdown-html>
 
 <head>
@@ -432,7 +432,6 @@
               } else {
                 linkHref = getPath() + linkHref;
               }
-              console.log(isRelativePath(linkHref), linkHref, pValue);
               linkHref = new URL(linkHref, 'http://example.com').pathname;
             }
             const newLink = `[${linkText}](${window.location.pathname}?p=${linkHref})`;
@@ -623,12 +622,23 @@
   <title>加载中</title>
   <style>
     /* 全局 */
-    * {
-      font-family: 'Exo', sans-serif;
+
+    :root,
+    html,
+    body,
+    button,
+    input,
+    select,
+    textarea,
+    code,
+    pre {
+      font-family: 'Sarasa Term SC Nerd', 'Maple Mono CN', Ubuntu, Roboto, 'Open Sans', 'Microsoft YaHei', Arial, sans-serif;
       text-decoration: none;
     }
 
-    :root {
+    :root,
+    html,
+    body {
       background-color: #e6e6e6;
     }
 
@@ -929,6 +939,8 @@
       }
     }
   </style>
+  <link rel="stylesheet"
+    href="https://chinese-fonts-cdn.deno.dev/packages/maple-mono-cn/dist/MapleMono-CN-Regular/result.css" />
 </head>
 
 <body>