@wulechuan/css-stylus-markdown-themes 7.2.8 → 7.4.0
Sign up to get free protection for your applications and to get access to all the features.
- package/ReadMe.md +14 -14
- package/package.json +27 -27
- package//346/226/207/346/241/243/{ → 351/233/206/}/346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/225/210/346/236/234/347/244/272/344/276/213/351/233/206//345/216/237/345/247/213/347/232/204-markdown-/346/240/274/345/274/217/347/232/204/346/226/207/347/253/240/illustrates/duan-er-pretty.jpg +0 -0
- package//346/226/207/346/241/243/{ → 351/233/206/}/346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/225/210/346/236/234/347/244/272/344/276/213/351/233/206//345/216/237/345/247/213/347/232/204-markdown-/346/240/274/345/274/217/347/232/204/346/226/207/347/253/240/illustrates/flower.webm +0 -0
- package//346/226/207/346/241/243/{ → 351/233/206/}/346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/225/210/346/236/234/347/244/272/344/276/213/351/233/206//345/216/237/345/247/213/347/232/204-markdown-/346/240/274/345/274/217/347/232/204/346/226/207/347/253/240/illustrates/softimage_xsi_2011_ice_graph.jpg +0 -0
- package//346/226/207/346/241/243/{ → 351/233/206/}/346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/225/210/346/236/234/347/244/272/344/276/213/351/233/206//345/216/237/345/247/213/347/232/204-markdown-/346/240/274/345/274/217/347/232/204/346/226/207/347/253/240/theming-example-article.en-US.md +3 -3
- package//346/226/207/346/241/243/{ → 351/233/206/}/346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/225/210/346/236/234/347/244/272/344/276/213/351/233/206//345/216/237/345/247/213/347/232/204-markdown-/346/240/274/345/274/217/347/232/204/346/226/207/347/253/240/theming-example-article.zh-hans-CN.md +37 -20
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206/javascript/table-of-contents-and-back-to-top-anchor-behaviors.js +37 -21
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206/javascript/table-of-contents-and-back-to-top-anchor-behaviors.min.js +1 -1
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown--firefox-addon.default.css +212 -105
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown--typora.default.css +201 -100
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown--vscode.default.min.css +1 -1
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default--no-toc.css +212 -110
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default--no-toc.min.css +1 -1
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default--with-toc.css +425 -163
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default--with-toc.min.css +1 -1
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default--wrapped--no-toc.css +212 -110
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default--wrapped--no-toc.min.css +1 -1
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default--wrapped--with-toc.css +425 -163
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default--wrapped--with-toc.min.css +1 -1
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default-dark--no-toc.css +248 -101
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default-dark--no-toc.min.css +1 -1
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default-dark--with-toc.css +515 -145
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default-dark--with-toc.min.css +1 -1
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default-dark--wrapped--no-toc.css +248 -101
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default-dark--wrapped--no-toc.min.css +1 -1
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default-dark--wrapped--with-toc.css +515 -145
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.default-dark--wrapped--with-toc.min.css +1 -1
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.generic-default-light--atom-one-dark--no-toc.css +212 -110
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.generic-default-light--atom-one-dark--no-toc.min.css +1 -1
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.generic-default-light--atom-one-dark--with-toc.css +425 -163
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.generic-default-light--atom-one-dark--with-toc.min.css +1 -1
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.generic-default-light--atom-one-dark--wrapped--no-toc.css +212 -110
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.generic-default-light--atom-one-dark--wrapped--no-toc.min.css +1 -1
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.generic-default-light--atom-one-dark--wrapped--with-toc.css +425 -163
- package//346/272/220/344/273/243/347/240/201//345/217/221/345/270/203/347/232/204/346/272/220/344/273/243/347/240/201//346/226/207/347/253/240/346/216/222/347/211/210/344/270/216/351/205/215/350/211/262/346/226/271/346/241/210/351/233/206//345/261/202/345/217/240/346/240/267/345/274/217/350/241/250/wulechuan-styles-for-html-via-markdown.generic-default-light--atom-one-dark--wrapped--with-toc.min.css +1 -1
package/ReadMe.md
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
## Multilingual Editions of this Article
|
12
12
|
|
13
|
-
- [English version of this ReadMe](
|
13
|
+
- [English version of this ReadMe](./文档集集/说明书/en-US/ReadMe.md)
|
14
14
|
|
15
15
|
|
16
16
|
|
@@ -39,15 +39,15 @@
|
|
39
39
|
|
40
40
|
|
41
41
|
|
42
|
-
##
|
42
|
+
## 文档集章节
|
43
43
|
|
44
44
|
> 以下章节均存在于单独的文件中,并非本文章之部分。
|
45
45
|
|
46
|
-
- 《[本工具之简介](
|
47
|
-
- 《[关于文章排版与配色效果示例集的说明(含最终视觉效果)](
|
48
|
-
- 《[本工具构建层叠样式表时所采用之内在规则之介绍](
|
49
|
-
- 《[业已支持的应用场景](
|
50
|
-
- 《[采用本工具开发一套新的文章排版与配色方案之详细步骤](
|
46
|
+
- 《[本工具之简介](./文档集/说明书/汉语/本工具之简介.md)》
|
47
|
+
- 《[关于文章排版与配色效果示例集的说明(含最终视觉效果)](./文档集/说明书/汉语/关于文章排版与配色效果示例集的说明.md)》
|
48
|
+
- 《[本工具构建层叠样式表时所采用之内在规则之介绍](./文档集/说明书/汉语/本工具构建层叠样式表时所采用之内在规则之介绍.md)》
|
49
|
+
- 《[业已支持的应用场景](./文档集/说明书/汉语/业已支持的应用场景.md)》
|
50
|
+
- 《[采用本工具开发一套新的文章排版与配色方案之详细步骤](./文档集/说明书/汉语/采用本工具开发一套新的文章排版与配色方案之详细步骤.md)》
|
51
51
|
|
52
52
|
|
53
53
|
|
@@ -60,24 +60,24 @@
|
|
60
60
|
|
61
61
|
### 应用默认浅色主题的范文截图
|
62
62
|
|
63
|
-
- [示例:简体中文范文配默认浅色主题,在宽大尺寸浏览器中的效果(目录已收叠)](
|
64
|
-
- [Snapshot: In default light-colored theme, in a wide window, with toc collapsed](
|
63
|
+
- [示例:简体中文范文配默认浅色主题,在宽大尺寸浏览器中的效果(目录已收叠)](./文档集/文章排版与配色效果示例集/以-html-格式渲染好的文章成品/各文章最终呈现效果之截图/示例:简体中文范文配默认浅色主题,1-在宽大尺寸浏览器中的效果(目录已收叠).png)
|
64
|
+
- [Snapshot: In default light-colored theme, in a wide window, with toc collapsed](./文档集/文章排版与配色效果示例集/以-html-格式渲染好的文章成品/各文章最终呈现效果之截图/example_en-US_default-light-colored-theme_1-in-a-wide-window_with-toc-collapsed.png)
|
65
65
|
|
66
66
|
|
67
67
|
### 应用默认深色主题的范文截图
|
68
68
|
|
69
|
-
- [示例:简体中文范文配默认深色主题,在宽大尺寸浏览器中的效果(目录已收叠)](
|
70
|
-
- [Snapshot: In default dark-colored theme, in a wide window, with toc collapsed](
|
69
|
+
- [示例:简体中文范文配默认深色主题,在宽大尺寸浏览器中的效果(目录已收叠)](./文档集/文章排版与配色效果示例集/以-html-格式渲染好的文章成品/各文章最终呈现效果之截图/示例:简体中文范文配默认深色主题,1-在宽大尺寸浏览器中的效果(目录已收叠).png)
|
70
|
+
- [Snapshot: In default dark-colored theme, in a wide window, with toc collapsed](./文档集/文章排版与配色效果示例集/以-html-格式渲染好的文章成品/各文章最终呈现效果之截图/example_en-US_default-dark-colored-theme_1-in-a-wide-window_with-toc-collapsed.png)
|
71
71
|
|
72
72
|
|
73
73
|
### 范文的所有截图
|
74
74
|
|
75
75
|
两篇范文之截图不止于上文中提及的四幅。更多图例,见:
|
76
76
|
|
77
|
-
- 《[应用效果示例(汉语版)](
|
78
|
-
- 《[Application Examples (en-US)](
|
77
|
+
- 《[应用效果示例(汉语版)](./文档集/说明书/汉语/关于文章排版与配色效果示例集的说明.md)》
|
78
|
+
- 《[Application Examples (en-US)](./文档集/说明书/en-US/application-examples.md)》
|
79
79
|
|
80
|
-
另附《[示范文章之截图之制作指南](
|
80
|
+
另附《[示范文章之截图之制作指南](./文档集/说明书/汉语/示范文章之截图之制作指南.md)》
|
81
81
|
|
82
82
|
|
83
83
|
|
package/package.json
CHANGED
@@ -2,37 +2,37 @@
|
|
2
2
|
"name": "@wulechuan/css-stylus-markdown-themes",
|
3
3
|
"author": "吴乐川 <wulechuan@live.com>",
|
4
4
|
"license": "WTFPL",
|
5
|
-
"version": "7.
|
6
|
-
"description": "
|
5
|
+
"version": "7.4.0",
|
6
|
+
"description": "此为吴乐川的 HTML 文章排版与配色之方案集。本工具可用于构建一组层叠样式表(即 CSS )文件,本工具亦提供了一组现成的层叠样式表文件。凡这些样式表,均可用于美化采用超文本标记语言(即 HTML )格式存储的文章。且不必同时取用多个样式表文件,仅取其一足矣。",
|
7
7
|
"directories": {
|
8
8
|
"source": "源代码/原始的源代码",
|
9
9
|
"dist": "源代码/发布的源代码",
|
10
10
|
"test": "测试集",
|
11
|
-
"doc": "
|
11
|
+
"doc": "文档集"
|
12
12
|
},
|
13
13
|
"main": "源代码/发布的源代码/本工具作为其他-javascript-工具之依赖模块时的代码/index.js",
|
14
14
|
"types": "源代码/发布的源代码/本工具作为其他-javascript-工具之依赖模块时的代码/index.d.ts",
|
15
15
|
"scripts": {
|
16
|
-
"eslint": "eslint ./.eslintrc.js ./gulpfile.esm.js/**/*.js
|
17
|
-
"firefox": "start firefox ./测试集/产生的临时文件/示例性-html-文件集(均嵌有半自动化截图辅助逻辑)/example.en-us.default-light-colored-theme.html ./测试集/产生的临时文件/示例性-html-文件集(均嵌有半自动化截图辅助逻辑)/example.en-us.default-dark-colored-theme.html ./测试集/产生的临时文件/示例性-html-文件集(均嵌有半自动化截图辅助逻辑)/example.zh-hans-cn.default-light-colored-theme.html ./测试集/产生的临时文件/示例性-html-文件集(均嵌有半自动化截图辅助逻辑)/example.zh-hans-cn.default-dark-colored-theme.html",
|
18
|
-
"open-dev-htmls": "start
|
19
|
-
"clean": "gulp
|
20
|
-
"
|
21
|
-
"_build": "gulp
|
22
|
-
"
|
23
|
-
"_update-example-htmls": "gulp
|
24
|
-
"_update-example-
|
25
|
-
"
|
26
|
-
"start": "gulp
|
16
|
+
"eslint": "eslint ./.eslintrc.js ./gulpfile.esm.js/**/*.js ./文档集/文章排版与配色效果示例集/*.js ./测试集/*.js ./源代码/发布的源代码/本工具作为其他-javascript-工具之依赖模块时的代码/*.js ./源代码/原始的源代码/用于设计文章排版与配色方案的代码/js/**/*.js ./本项目之全局配置项集.js",
|
17
|
+
"open-firefox-for-snapshots": "start firefox ./测试集/产生的临时文件/示例性-html-文件集(均嵌有半自动化截图辅助逻辑)/example.en-us.default-light-colored-theme.html ./测试集/产生的临时文件/示例性-html-文件集(均嵌有半自动化截图辅助逻辑)/example.en-us.default-dark-colored-theme.html ./测试集/产生的临时文件/示例性-html-文件集(均嵌有半自动化截图辅助逻辑)/example.zh-hans-cn.default-light-colored-theme.html ./测试集/产生的临时文件/示例性-html-文件集(均嵌有半自动化截图辅助逻辑)/example.zh-hans-cn.default-dark-colored-theme.html",
|
18
|
+
"open-dev-htmls": "start ./测试集/产生的临时文件/示例性-html-文件集(仅限于当前正在开发的排版与配色方案)/default-theming-example.--DEV--.en-us.html && start ./测试集/产生的临时文件/示例性-html-文件集(仅限于当前正在开发的排版与配色方案)/default-theming-example.--DEV--.zh-hans-cn.html",
|
19
|
+
"clean": "gulp --silent cleanAll",
|
20
|
+
"clean-2": "gulp cleanAll",
|
21
|
+
"_build": "gulp --silent buildAllThemesOnce",
|
22
|
+
"_build-2": "gulp buildAllThemesOnce",
|
23
|
+
"_update-example-htmls": "gulp --silent updateExampleHTMLs",
|
24
|
+
"_update-example-htmls-2": "gulp updateExampleHTMLs",
|
25
|
+
"start-2": "gulp --silent devSingleThemeOnce && npm run open-dev-htmls && gulp --silent devSingleTheme",
|
26
|
+
"start": "gulp devSingleThemeOnce && npm run open-dev-htmls && gulp devSingleTheme",
|
27
27
|
"_test-package-interfaces": "node ./测试集/用于测试本项目之-javascript-接口的测试代码集.js",
|
28
|
-
"_test-all-without-linting-without-browser": "npm run _test-package-interfaces
|
29
|
-
"update-example-htmls": "npm
|
30
|
-
"update-example-
|
31
|
-
"test": "npm
|
32
|
-
"build": "npm
|
33
|
-
"
|
34
|
-
"
|
35
|
-
"prepublishOnly": "npm
|
28
|
+
"_test-all-without-linting-without-browser": "npm run _test-package-interfaces && npm run _build-2 && npm run _update-example-htmls-2 && gulp devSingleThemeOnce",
|
29
|
+
"update-example-htmls": "npm run _update-example-htmls && npm run open-firefox-for-snapshots",
|
30
|
+
"update-example-htmls-2": "npm run _update-example-htmls-2 && npm run open-firefox-for-snapshots",
|
31
|
+
"test": "npm run eslint && npm run _test-all-without-linting-without-browser && npm run open-firefox-for-snapshots && npm run open-dev-htmls",
|
32
|
+
"build": "npm run eslint && npm run _build && npm run update-example-htmls",
|
33
|
+
"build-2": "npm run eslint && npm run _build-2 && npm run update-example-htmls-2",
|
34
|
+
"每当制作集得之版本之前": "npm i && npm test",
|
35
|
+
"prepublishOnly": "npm i && npm test"
|
36
36
|
},
|
37
37
|
"keywords": [
|
38
38
|
"markdown",
|
@@ -77,15 +77,15 @@
|
|
77
77
|
"globby": "^11.1.0"
|
78
78
|
},
|
79
79
|
"devDependencies": {
|
80
|
-
"@wulechuan/cli-scripts--git-push": "^
|
80
|
+
"@wulechuan/cli-scripts--git-push": "^2.0.0",
|
81
81
|
"@wulechuan/generate-html-via-markdown": "^3.0.9",
|
82
82
|
"@wulechuan/gulp-classical-task-cycle": "^0.3.0",
|
83
83
|
"chalk": "^4.1.2",
|
84
|
-
"cssnano": "^5.1.
|
84
|
+
"cssnano": "^5.1.7",
|
85
85
|
"del": "^6.0.0",
|
86
|
-
"eslint": "^8.
|
86
|
+
"eslint": "^8.14.0",
|
87
87
|
"esm": "^3.2.25",
|
88
|
-
"fs-extra": "^10.0
|
88
|
+
"fs-extra": "^10.1.0",
|
89
89
|
"gulp": "^4.0.2",
|
90
90
|
"gulp-concat": "^2.6.1",
|
91
91
|
"gulp-pipe": "^1.0.4",
|
@@ -93,6 +93,6 @@
|
|
93
93
|
"gulp-rename": "^2.0.0",
|
94
94
|
"gulp-stylus": "^2.7.1",
|
95
95
|
"gulp-terser": "^2.1.0",
|
96
|
-
"postcss": "^8.4.
|
96
|
+
"postcss": "^8.4.12"
|
97
97
|
}
|
98
98
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Wulechuan
|
1
|
+
# Wulechuan's Article CSS Styles Examples
|
2
2
|
|
3
3
|
<p class="document-author">wulechuan@live.com</p>
|
4
4
|
|
@@ -449,7 +449,7 @@ html, body {
|
|
449
449
|
display: flex;
|
450
450
|
position: relative;
|
451
451
|
width: 100%;
|
452
|
-
font-family: '
|
452
|
+
font-family: 'Microsoft YaHei UI', 'Segoe UI', serif;
|
453
453
|
}
|
454
454
|
|
455
455
|
.back-to-top {
|
@@ -480,7 +480,7 @@ a {
|
|
480
480
|
}
|
481
481
|
|
482
482
|
a:hover {
|
483
|
-
text-decoration: underline !important;
|
483
|
+
text-decoration-line: underline !important;
|
484
484
|
}
|
485
485
|
|
486
486
|
a[href^="#"] {
|
@@ -15,6 +15,8 @@
|
|
15
15
|
|
16
16
|
### 《千字文》[节选]
|
17
17
|
|
18
|
+
<center>
|
19
|
+
|
18
20
|
天地玄黄 宇宙洪荒\
|
19
21
|
日月盈昃 辰宿列张\
|
20
22
|
寒来暑往 秋收冬藏\
|
@@ -24,6 +26,8 @@
|
|
24
26
|
剑号巨阙 珠称夜光\
|
25
27
|
果珍李柰 菜重芥姜
|
26
28
|
|
29
|
+
</center>
|
30
|
+
|
27
31
|
|
28
32
|
|
29
33
|
### 《日记(2019年6月18日)》[节选]
|
@@ -42,7 +46,7 @@
|
|
42
46
|
|
43
47
|
#### 《马诗二十三首·其五》
|
44
48
|
|
45
|
-
<
|
49
|
+
<i>【唐】 李贺</i>
|
46
50
|
|
47
51
|
大漠沙如雪\
|
48
52
|
燕山月似钩\
|
@@ -52,17 +56,19 @@
|
|
52
56
|
|
53
57
|
### 杂乱内容,仅用于视觉样式之呈示
|
54
58
|
|
55
|
-
|
59
|
+
一段文字中会有**着重的文字**,也会有*斜体的文字*,甚至 _**斜体且着重的文字**_ 以及 **_着重且斜体的文字_**。
|
60
|
+
|
61
|
+
网页中的文章常常有【超链接】。我以前常常将代码存放在外国的GitHub上,如今则更倾向于采用中国的“码云”。“Github”一词,我本人有意将其译为【[集得中心](https://github.com)】。当然,这并非官方译法,乃鄙人之拙见。
|
56
62
|
|
57
|
-
|
63
|
+
如果一个超链接指向**本文**某处,不妨称其为**文内链接**,而不应生硬地由英语直译为所谓“本地链接”。另,文内链接看起来与应与指向其它文章或网址的超链接稍有不同,以为明示。暗示不堪用,明示才好。小例一则:跳转至本文《[程序代码片段示例集](#程序代码片段示例集)》。
|
58
64
|
|
59
|
-
|
65
|
+
再来看看行文中的【代码词汇】、【专有名词】和【术语】:例如`grep`、`孙行者`和`中央处理单元`。又如`querySelector`和`querySelectorAll`早已取代了老式的`getElementsById`等函数。术语框中的多个连续空格也应得到保留,例如`这后面有四个空格 这前面有四个空格`。
|
60
66
|
|
61
|
-
|
67
|
+
术语与超链接还可组合为一体。新中国的建立和成长离不开一群功勋卓著的科学家们。例如伟大的、富有爱国主义精神和民族自信的[`钱学森`](https://baike.baidu.com/item/%E9%92%B1%E5%AD%A6%E6%A3%AE/26105),他是**中国科学院资深院士**、**中国工程院资深院士**。
|
62
68
|
|
63
|
-
计算机键盘快捷键,其视觉样式如是:<kbd>Ctrl</kbd>+<kbd> </kbd>;又例:如今,<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>s</kbd
|
69
|
+
计算机键盘快捷键,其视觉样式如是:<kbd>Ctrl</kbd>+<kbd> </kbd>;又例:如今,<kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>s</kbd>这一组合键早已广泛用于各种现代计算机软件中,代表(将工作内容或文件)`另存为`(壹文件)之功能。
|
64
70
|
|
65
|
-
|
71
|
+
还有些内容会故意“杠掉”,即被中划线划去,表示此内容不正确,不应采纳,应作废。例如:~~地球是平的~~。
|
66
72
|
|
67
73
|
|
68
74
|
#### 多级列表
|
@@ -75,7 +81,7 @@
|
|
75
81
|
2. 王昭君,2070 岁
|
76
82
|
3. 貂蝉,约 1820 岁
|
77
83
|
4. 杨玉环,1300 岁
|
78
|
-
5.
|
84
|
+
5. 你媳妇儿,永远 20 岁
|
79
85
|
|
80
86
|
3. 第 1 级第 3 项
|
81
87
|
|
@@ -125,7 +131,7 @@
|
|
125
131
|
|
126
132
|
##### 层叠样式表对象模型(这是 h5)
|
127
133
|
|
128
|
-
CSS Object Model 是一组允许用 JavaScript 操纵 CSS 的 API。 它是继 DOM 和 HTML API 之后,又一个操纵 CSS
|
134
|
+
CSS Object Model 是一组允许用 JavaScript 操纵 CSS 的 API。 它是继 DOM 和 HTML API 之后,又一个操纵 CSS 的接口,使得我们能够动态地读取和修改 CSS 样式。<sup>[2]</sup>
|
129
135
|
|
130
136
|
|
131
137
|
|
@@ -150,14 +156,14 @@ CSS Object Model 是一组允许用 JavaScript 操纵 CSS 的 API。 它是继 D
|
|
150
156
|
|
151
157
|
如果引用的文字很短,我目前的设计是令它们位于同一行中。例如:
|
152
158
|
|
153
|
-
> circle ['sɜrk(ə)l]
|
159
|
+
> circle ['sɜrk(ə)l] <i>n.</i> 圆。
|
154
160
|
|
155
|
-
> area ['eriə]
|
161
|
+
> area ['eriə] <i>n.</i> 面积。
|
156
162
|
|
157
163
|
|
158
164
|
- 出现在列表项中的引用文字:
|
159
165
|
|
160
|
-
|
166
|
+
复旦大学中国研究院院长[张维为](https://baike.baidu.com/item/%E5%BC%A0%E7%BB%B4%E4%B8%BA/2650478)教授在其所著《中国超越:一个文明型国家的光荣与梦想》中写道:
|
161
167
|
|
162
168
|
> 中国人的爱国主义是长江、黄河、珠穆朗玛峰;是《诗经》、《楚辞》、先秦散文;是唐诗、宋词、元曲、明清小说;是屈原、岳飞、文天祥、毛泽东;是普通话、四川话、广东粤语、上海方言;是万里长城、北京故宫、桂林山水、陕西兵马俑;是川菜、粤菜、鲁菜、淮扬菜;是西湖龙井、黄山毛峰、武夷岩茶、洞庭碧螺春;是《梅花三弄》、《高山流水》、《二泉映月》、《春江花月夜》;是四合院、广东骑楼、徽派大院、江南民居;是昆剧、京剧、粤剧、黄梅戏;是南昌起义、平型关大捷、台儿庄血战、抗美援朝;是两弹一星、北斗导航、神舟号飞船、高铁八纵八横;是己所不欲,勿施于人;是四海之内皆兄弟;是胸怀祖国,放眼世界等等等等。
|
163
169
|
|
@@ -268,13 +274,19 @@ CSS Object Model 是一组允许用 JavaScript 操纵 CSS 的 API。 它是继 D
|
|
268
274
|
|
269
275
|
### JavaScript 代码片段
|
270
276
|
|
271
|
-
|
277
|
+
#### 列表项中的代码片段1
|
278
|
+
|
279
|
+
- 先定义一个函数:
|
272
280
|
|
273
281
|
```js
|
274
282
|
function getCircleArea(r) {
|
275
283
|
return 3.14159265 * r * r;
|
276
284
|
}
|
285
|
+
```
|
286
|
+
|
287
|
+
然后调用它:
|
277
288
|
|
289
|
+
```
|
278
290
|
getCircleArea(100);
|
279
291
|
```
|
280
292
|
|
@@ -287,9 +299,9 @@ CSS Object Model 是一组允许用 JavaScript 操纵 CSS 的 API。 它是继 D
|
|
287
299
|
getCircumference(100);
|
288
300
|
```
|
289
301
|
|
290
|
-
> `circumference`
|
302
|
+
> `circumference` [sər'kʌmf(ə)rəns] <i>n.</i> 圆周长
|
291
303
|
|
292
|
-
|
304
|
+
- <details open>
|
293
305
|
<summary>折叠内容中的代码块1</summary>
|
294
306
|
|
295
307
|
```js
|
@@ -300,7 +312,10 @@ CSS Object Model 是一组允许用 JavaScript 操纵 CSS 的 API。 它是继 D
|
|
300
312
|
|
301
313
|
|
302
314
|
|
303
|
-
|
315
|
+
|
316
|
+
#### 叠内容中的代码块
|
317
|
+
|
318
|
+
下面是在叠内容中的代码块。
|
304
319
|
|
305
320
|
<details open>
|
306
321
|
<summary>折叠内容中的代码块2</summary>
|
@@ -312,6 +327,8 @@ console.log(NaN === NaN); // false
|
|
312
327
|
</details>
|
313
328
|
|
314
329
|
|
330
|
+
#### 在行文结构之所谓“顶层”的代码块
|
331
|
+
|
315
332
|
```js
|
316
333
|
// 这是一句行尾注释。好吧,我承认它恰好在这一行的开头。
|
317
334
|
import something from 'somethingjs'
|
@@ -477,7 +494,7 @@ exports.author = 'wulechun@live.com';
|
|
477
494
|
<meta charset="UTF-8">
|
478
495
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
479
496
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
480
|
-
<title
|
497
|
+
<title>吴乐川的示范文档</title>
|
481
498
|
<!-- 这是简短的单行注释。 -->
|
482
499
|
<style id="my-embedded-styles">
|
483
500
|
div {
|
@@ -586,7 +603,7 @@ exports.author = 'wulechun@live.com';
|
|
586
603
|
<meta charset="UTF-8">
|
587
604
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
588
605
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
589
|
-
<title
|
606
|
+
<title>吴乐川的示范文档</title>
|
590
607
|
</head>
|
591
608
|
<body>
|
592
609
|
<h1>DOM 的概念</h1>
|
@@ -631,7 +648,7 @@ html, body {
|
|
631
648
|
display: flex;
|
632
649
|
position: relative;
|
633
650
|
width: 100%;
|
634
|
-
font-family: '
|
651
|
+
font-family: '微软雅黑', 'Segoe UI', serif;
|
635
652
|
}
|
636
653
|
|
637
654
|
.back-to-top {
|
@@ -662,7 +679,7 @@ a {
|
|
662
679
|
}
|
663
680
|
|
664
681
|
a:hover {
|
665
|
-
text-decoration: underline !important;
|
682
|
+
text-decoration-line: underline !important;
|
666
683
|
}
|
667
684
|
|
668
685
|
a[href^="#"] {
|
@@ -2,7 +2,7 @@ window.shouldShowOnlyTwoLevelsOfTOCItemsAtMost = false
|
|
2
2
|
window.atBeginingShouldCollapseAllTOCItemsOfLevelsGreaterThan = 1
|
3
3
|
window.atBeginingShouldExpandTOCWhenWindowIsWideEnough = false
|
4
4
|
|
5
|
-
;(function setupAndStartApp() {
|
5
|
+
;(function setupAndStartApp () {
|
6
6
|
const gitRepoURIs = [
|
7
7
|
'https://gitee.com/nanchang-wulechuan/wulechuan-css-stylus-themes-for-htmls-via-markdowns.git',
|
8
8
|
// 'https://code.aliyun.com/wulechuan/wulechuan-themes-for-htmls-via-markdowns.git',
|
@@ -81,6 +81,7 @@ window.atBeginingShouldExpandTOCWhenWindowIsWideEnough = false
|
|
81
81
|
const cssClassNameTOCIsVisible = 'markdown-article-toc-is-visible'
|
82
82
|
const cssClassNameTOCItemHasNestedList = 'has-nested-toc-list'
|
83
83
|
const cssClassNameTOCItemIsCollapsed = 'is-collapsed'
|
84
|
+
const cssClassNameTOCItemIsExpanded = 'is-expanded'
|
84
85
|
const cssClassNameTOCTogglingButton = 'markdown-article-toc-toggling-button'
|
85
86
|
const cssClassNameTOCShowsOnly2LevelsOfItems = 'should-show-2-levels-at-most'
|
86
87
|
|
@@ -143,10 +144,10 @@ window.atBeginingShouldExpandTOCWhenWindowIsWideEnough = false
|
|
143
144
|
|
144
145
|
|
145
146
|
|
146
|
-
function buildTOCPanelTogglingButton() {
|
147
|
+
function buildTOCPanelTogglingButton () {
|
147
148
|
/**
|
148
149
|
* 我倾向于用 Javascript 来临时构建该按钮。
|
149
|
-
*
|
150
|
+
* 因为如果一个苛刻的环境仅允许读文档,而不允许
|
150
151
|
* Javascript 程序运行,那咱们还要切换按钮干嘛?
|
151
152
|
*
|
152
153
|
* ---------------------------------------------
|
@@ -160,7 +161,7 @@ window.atBeginingShouldExpandTOCWhenWindowIsWideEnough = false
|
|
160
161
|
let tocTogglingButton = document.querySelector(`.${cssClassNameTOCTogglingButton}`)
|
161
162
|
|
162
163
|
/**
|
163
|
-
*
|
164
|
+
* 万一按钮确实已经存在呢?比如工具构建好了静态的按钮?那就不必再创建一个新的了。
|
164
165
|
* What if the button already exists? Then we simply don't create one more.
|
165
166
|
*/
|
166
167
|
if (!tocTogglingButton) {
|
@@ -181,24 +182,24 @@ window.atBeginingShouldExpandTOCWhenWindowIsWideEnough = false
|
|
181
182
|
return tocTogglingButton
|
182
183
|
}
|
183
184
|
|
184
|
-
function onTOCTogglingButtonClick() {
|
185
|
+
function onTOCTogglingButtonClick () {
|
185
186
|
showOrHideTOCPanel(!tocIsVisible)
|
186
187
|
}
|
187
188
|
|
188
|
-
function showOrHideTOCPanel(isToShowIt) {
|
189
|
+
function showOrHideTOCPanel (isToShowIt) {
|
189
190
|
tocStatusCSSClassNamesCarrier.classList.toggle(cssClassNameTOCIsVisible, isToShowIt)
|
190
191
|
tocIsVisible = isToShowIt
|
191
192
|
}
|
192
193
|
|
193
|
-
function isTOCPanelFloatingOverArticle() {
|
194
|
+
function isTOCPanelFloatingOverArticle () {
|
194
195
|
return window.innerWidth <= maxWindowWidthToEnableArticleClickingToHideTOC
|
195
196
|
}
|
196
197
|
|
197
|
-
function isTOCPanelCoveringEntirePage() {
|
198
|
+
function isTOCPanelCoveringEntirePage () {
|
198
199
|
return window.innerWidth <= maxWindowWidthWhenTOCPanelCoversEntirePage
|
199
200
|
}
|
200
201
|
|
201
|
-
function onArticleClick() {
|
202
|
+
function onArticleClick () {
|
202
203
|
if (!isTOCPanelFloatingOverArticle()) {
|
203
204
|
return
|
204
205
|
}
|
@@ -206,7 +207,7 @@ window.atBeginingShouldExpandTOCWhenWindowIsWideEnough = false
|
|
206
207
|
showOrHideTOCPanel(false)
|
207
208
|
}
|
208
209
|
|
209
|
-
function onBackToTopLinkClick() {
|
210
|
+
function onBackToTopLinkClick () {
|
210
211
|
if (!isTOCPanelCoveringEntirePage()) {
|
211
212
|
return
|
212
213
|
}
|
@@ -214,7 +215,7 @@ window.atBeginingShouldExpandTOCWhenWindowIsWideEnough = false
|
|
214
215
|
showOrHideTOCPanel(false)
|
215
216
|
}
|
216
217
|
|
217
|
-
function markLevelIdForTOCAllItems(listRootParent, currentLevel) {
|
218
|
+
function markLevelIdForTOCAllItems (listRootParent, currentLevel) {
|
218
219
|
const listRoot = listRootParent.querySelector('ol, ul')
|
219
220
|
if (!listRoot) { return }
|
220
221
|
|
@@ -234,7 +235,7 @@ window.atBeginingShouldExpandTOCWhenWindowIsWideEnough = false
|
|
234
235
|
})
|
235
236
|
}
|
236
237
|
|
237
|
-
function makeTOCItemsEachCollapsible() {
|
238
|
+
function makeTOCItemsEachCollapsible () {
|
238
239
|
const lis = Array.prototype.slice.apply(tocRoot.querySelectorAll('li'))
|
239
240
|
lis.forEach(li => {
|
240
241
|
if (li.querySelectorAll('li').length > 0) {
|
@@ -258,14 +259,12 @@ window.atBeginingShouldExpandTOCWhenWindowIsWideEnough = false
|
|
258
259
|
|
259
260
|
Array.prototype.slice.apply(allCollapsibleLis).forEach(li => {
|
260
261
|
li.isCollapsible = true
|
261
|
-
|
262
|
-
|
263
|
-
li.classList.add(cssClassNameTOCItemIsCollapsed)
|
264
|
-
}
|
262
|
+
const liShouldExpand = li.tocLevelId <= window.atBeginingShouldCollapseAllTOCItemsOfLevelsGreaterThan
|
263
|
+
collapseOrExpandSingleLiElement(li, liShouldExpand)
|
265
264
|
})
|
266
265
|
}
|
267
266
|
|
268
|
-
function tocItemAnchorClickHandler(e) {
|
267
|
+
function tocItemAnchorClickHandler (e) {
|
269
268
|
e.stopPropagation()
|
270
269
|
|
271
270
|
const { srcElement } = e
|
@@ -297,10 +296,27 @@ window.atBeginingShouldExpandTOCWhenWindowIsWideEnough = false
|
|
297
296
|
}
|
298
297
|
|
299
298
|
if (TOCItemIsCollapsibleInCurrentSituation) {
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
299
|
+
const { classList } = liElement
|
300
|
+
const liShouldExpand = classList.contains(cssClassNameTOCItemIsCollapsed) || forceToExpand
|
301
|
+
collapseOrExpandSingleLiElement(liElement, liShouldExpand)
|
302
|
+
}
|
303
|
+
}
|
304
|
+
|
305
|
+
function collapseOrExpandSingleLiElement (liElement, shouldExpand) {
|
306
|
+
const { classList } = liElement
|
307
|
+
if (shouldExpand) {
|
308
|
+
if (!classList.contains(cssClassNameTOCItemIsExpanded)) {
|
309
|
+
classList.add(cssClassNameTOCItemIsExpanded)
|
310
|
+
}
|
311
|
+
if (classList.contains(cssClassNameTOCItemIsCollapsed)) {
|
312
|
+
classList.remove(cssClassNameTOCItemIsCollapsed)
|
313
|
+
}
|
314
|
+
} else {
|
315
|
+
if (!classList.contains(cssClassNameTOCItemIsCollapsed)) {
|
316
|
+
classList.add(cssClassNameTOCItemIsCollapsed)
|
317
|
+
}
|
318
|
+
if (classList.contains(cssClassNameTOCItemIsExpanded)) {
|
319
|
+
classList.remove(cssClassNameTOCItemIsExpanded)
|
304
320
|
}
|
305
321
|
}
|
306
322
|
}
|
@@ -1 +1 @@
|
|
1
|
-
window.shouldShowOnlyTwoLevelsOfTOCItemsAtMost=!1,window.atBeginingShouldCollapseAllTOCItemsOfLevelsGreaterThan=1,window.atBeginingShouldExpandTOCWhenWindowIsWideEnough=!1,function(){const e=["https://gitee.com/nanchang-wulechuan/wulechuan-css-stylus-themes-for-htmls-via-markdowns.git","https://github.com/wulechuan/wulechuan-css-stylus-themes-for-htmls-via-markdowns.git"],t=e.reduce(((e,t)=>Math.max(e,t.length)),0)+0,n=Math.floor(t/2)+6,
|
1
|
+
window.shouldShowOnlyTwoLevelsOfTOCItemsAtMost=!1,window.atBeginingShouldCollapseAllTOCItemsOfLevelsGreaterThan=1,window.atBeginingShouldExpandTOCWhenWindowIsWideEnough=!1,function(){const e=["https://gitee.com/nanchang-wulechuan/wulechuan-css-stylus-themes-for-htmls-via-markdowns.git","https://github.com/wulechuan/wulechuan-css-stylus-themes-for-htmls-via-markdowns.git"],t=e.reduce(((e,t)=>Math.max(e,t.length)),0)+0,n=Math.floor(t/2)+6,o="-".repeat(t),l="=".repeat(t),s="wulechuan@live.com",c="北京时间 2021-03-21",i=[];"中国人——特别是汉族人,理应坚持广泛、规范地使用汉语。凡非必要之情形不说外国话、不用外国字。此乃天经地义!\n然则每当必要,亦不排斥采用外国之语言。不妨博世界之学问,养中国之精神。\n本人亦支持少数民族坚持采用自己民族的传统语言。仍须强调,凡中国人,皆应会用汉语、积极使用汉语,此乃中华各民族之大一统之必由。".split("\n").forEach((e=>{i.push(""),i.push(" "+e.slice(0,n-4));let t=e.slice(n-4);for(;t.length>0;){const e=t.match(/^(,|。|!|,”|。”|!”| 》,|》。| 》!| 》,”| 》。”| 》!”)/);if(e){const n=e[1],o=i[i.length-1];i[i.length-1]=o+n,t=t.slice(n.length)}const o=t.slice(0,n);o&&i.push(o),t=t.slice(o.length)}})),console.log(`\n${l}\n\n欢迎使用吴乐川设计的用于控制文章目录之交互的控制器。\n( Welcome to wulechuan's article TOC controller. )\n\n${" ".repeat(t-s.length)}${s}\n${" ".repeat(t-c.length-3)}${c}\n\n${o}\n\n${e.join("\n")}\n\n${o}\n${i.join("\n")}\n\n${l}\n\n\n`);const a="has-nested-toc-list",r="is-collapsed",u="is-expanded",d="markdown-article-toc-toggling-button",h=1e3,w=document.querySelector(".markdown-article");if(!w)return;const p=document.querySelector("nav.markdown-article-toc");if(!p)return;p.classList.toggle("should-show-2-levels-at-most",window.shouldShowOnlyTwoLevelsOfTOCItemsAtMost);const f=document.querySelector(".markdown-article-back-to-top");f&&(f.onclick=function(){if(!C())return;O(!1)}),w.onclick=function(){if(!(window.innerWidth<=h))return;O(!1)};const m=document.body,g=m,y=m;let v;y.classList.add("markdown-article-toc-exists"),function e(t,n){const o=t.querySelector("ol, ul");if(!o)return;n||(n=1);o.classList.add(`toc-list-level-${n}`);Array.prototype.slice.apply(o.children).filter((e=>"li"===e.tagName.toLowerCase())).forEach((t=>{t.tocLevelId=n,t.classList.add(`toc-list-level-${n}-item`),e(t,n+1)}))}(p),function(){let e;if(Array.prototype.slice.apply(p.querySelectorAll("li")).forEach((e=>{if(e.querySelectorAll("li").length>0){const t=e.querySelector("a");e.classList.add(a),e.hasNestedList=!0,e.isCollapsible=!1,e.selfAnchor=t,e.onclick=k}})),window.shouldShowOnlyTwoLevelsOfTOCItemsAtMost){const t=p.querySelector("ol, ul").children;e=t}else e=p.querySelectorAll("li.has-nested-toc-list");Array.prototype.slice.apply(e).forEach((e=>{e.isCollapsible=!0;$(e,e.tocLevelId<=window.atBeginingShouldCollapseAllTOCItemsOfLevelsGreaterThan)}))}(),function(){let e=document.querySelector(`.${d}`);e||(e=document.createElement("button"),e.className=d,g===m?g.insertBefore(e,document.scripts[0]):g.appendChild(e));null===e.onclick&&(e.onclick=S)}();let L="";function S(){O(!v)}function O(e){y.classList.toggle("markdown-article-toc-is-visible",e),v=e}function C(){return window.innerWidth<=600}function k(e){e.stopPropagation();const{srcElement:t}=e,n=this,{selfAnchor:o}=n;if(t!==n&&t!==o)return;const l=o.href;let s="";l.match(/#/)&&(s=`#${l.split("#").pop()}`);const c=!!s&&L!==s;L=s;let i=n.isCollapsible;if(C()&&(i=!1),i){const{classList:e}=n;$(n,e.contains(r)||c)}}function $(e,t){const{classList:n}=e;t?(n.contains(u)||n.add(u),n.contains(r)&&n.remove(r)):(n.contains(r)||n.add(r),n.contains(u)&&n.remove(u))}O(window.atBeginingShouldExpandTOCWhenWindowIsWideEnough&&window.innerWidth>=h)}();
|