@markdown-viewer/documd 5.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +99 -0
- package/browser-renderer.js +12638 -0
- package/documd.js +1050 -0
- package/package.json +51 -0
- package/stencils/alibaba_cloud.json +1 -0
- package/stencils/android.json +1 -0
- package/stencils/arrows.json +1 -0
- package/stencils/atlassian.json +1 -0
- package/stencils/aws.json +1 -0
- package/stencils/aws2.json +1 -0
- package/stencils/aws3.json +1 -0
- package/stencils/aws3d.json +1 -0
- package/stencils/aws4.json +1 -0
- package/stencils/azure.json +1 -0
- package/stencils/basic.json +1 -0
- package/stencils/bootstrap.json +1 -0
- package/stencils/bpmn.json +1 -0
- package/stencils/cabinets.json +1 -0
- package/stencils/cisco.json +1 -0
- package/stencils/cisco19.json +1 -0
- package/stencils/cisco_safe.json +1 -0
- package/stencils/citrix.json +1 -0
- package/stencils/citrix2.json +1 -0
- package/stencils/eip.json +1 -0
- package/stencils/electrical.json +1 -0
- package/stencils/floorplan.json +1 -0
- package/stencils/flowchart.json +1 -0
- package/stencils/fluid_power.json +1 -0
- package/stencils/gcp.json +1 -0
- package/stencils/gcp2.json +1 -0
- package/stencils/gmdl.json +1 -0
- package/stencils/ibm.json +1 -0
- package/stencils/ibm_cloud.json +1 -0
- package/stencils/index.json +298 -0
- package/stencils/ios7.json +1 -0
- package/stencils/kubernetes.json +1 -0
- package/stencils/kubernetes2.json +1 -0
- package/stencils/lean_mapping.json +1 -0
- package/stencils/mockup.json +1 -0
- package/stencils/mscae.json +1 -0
- package/stencils/networks.json +1 -0
- package/stencils/networks2.json +1 -0
- package/stencils/office.json +1 -0
- package/stencils/openstack.json +1 -0
- package/stencils/pid.json +1 -0
- package/stencils/rack.json +1 -0
- package/stencils/salesforce.json +1 -0
- package/stencils/signs.json +1 -0
- package/stencils/sitemap.json +1 -0
- package/stencils/veeam.json +1 -0
- package/stencils/vvd.json +1 -0
- package/stencils/webicons.json +1 -0
- package/stencils/weblogos.json +1 -0
- package/styles.css +1 -0
- package/themes/code-themes/business-contrast.json +31 -0
- package/themes/code-themes/colorful.json +32 -0
- package/themes/code-themes/cool-modern.json +31 -0
- package/themes/code-themes/dracula-code.json +31 -0
- package/themes/code-themes/light-clean.json +31 -0
- package/themes/code-themes/midnight-code.json +31 -0
- package/themes/code-themes/nord-code.json +31 -0
- package/themes/code-themes/solarized-dark-code.json +31 -0
- package/themes/code-themes/vscode-dark-code.json +31 -0
- package/themes/code-themes/vscode-light-code.json +31 -0
- package/themes/code-themes/warm-book.json +31 -0
- package/themes/color-schemes/candy.json +37 -0
- package/themes/color-schemes/carbon.json +37 -0
- package/themes/color-schemes/cool.json +37 -0
- package/themes/color-schemes/dracula-soft.json +37 -0
- package/themes/color-schemes/draft.json +37 -0
- package/themes/color-schemes/forest.json +37 -0
- package/themes/color-schemes/gruvbox-dark.json +37 -0
- package/themes/color-schemes/ink.json +37 -0
- package/themes/color-schemes/midnight.json +37 -0
- package/themes/color-schemes/neutral.json +37 -0
- package/themes/color-schemes/nord-dark.json +37 -0
- package/themes/color-schemes/obsidian.json +37 -0
- package/themes/color-schemes/ocean.json +37 -0
- package/themes/color-schemes/rainbow.json +46 -0
- package/themes/color-schemes/sakura.json +37 -0
- package/themes/color-schemes/sepia.json +37 -0
- package/themes/color-schemes/slate.json +37 -0
- package/themes/color-schemes/solarized-dark.json +37 -0
- package/themes/color-schemes/vscode-dark.json +45 -0
- package/themes/color-schemes/vscode-light.json +45 -0
- package/themes/color-schemes/warm.json +37 -0
- package/themes/font-config.json +211 -0
- package/themes/layout-schemes/book.json +40 -0
- package/themes/layout-schemes/compact.json +40 -0
- package/themes/layout-schemes/display.json +40 -0
- package/themes/layout-schemes/editorial.json +40 -0
- package/themes/layout-schemes/formal-paper.json +40 -0
- package/themes/layout-schemes/formal.json +40 -0
- package/themes/layout-schemes/magazine.json +40 -0
- package/themes/layout-schemes/regular.json +40 -0
- package/themes/layout-schemes/standard.json +40 -0
- package/themes/layout-schemes/vscode.json +62 -0
- package/themes/presets/academic.json +27 -0
- package/themes/presets/business.json +22 -0
- package/themes/presets/candy.json +23 -0
- package/themes/presets/carbon.json +18 -0
- package/themes/presets/century.json +22 -0
- package/themes/presets/default.json +29 -0
- package/themes/presets/dracula.json +18 -0
- package/themes/presets/elegant.json +22 -0
- package/themes/presets/forest.json +22 -0
- package/themes/presets/garamond.json +22 -0
- package/themes/presets/gruvbox.json +18 -0
- package/themes/presets/handwritten.json +23 -0
- package/themes/presets/heiti.json +22 -0
- package/themes/presets/magazine.json +24 -0
- package/themes/presets/manuscript.json +22 -0
- package/themes/presets/midnight.json +18 -0
- package/themes/presets/minimal.json +22 -0
- package/themes/presets/mixed.json +24 -0
- package/themes/presets/newspaper.json +24 -0
- package/themes/presets/nord.json +18 -0
- package/themes/presets/obsidian.json +18 -0
- package/themes/presets/ocean.json +22 -0
- package/themes/presets/official.json +29 -0
- package/themes/presets/palatino.json +22 -0
- package/themes/presets/rainbow.json +23 -0
- package/themes/presets/slate.json +18 -0
- package/themes/presets/solarized-dark.json +18 -0
- package/themes/presets/swiss.json +22 -0
- package/themes/presets/technical.json +22 -0
- package/themes/presets/typewriter.json +23 -0
- package/themes/presets/verdana.json +22 -0
- package/themes/presets/vscode-dark.json +24 -0
- package/themes/presets/vscode.json +24 -0
- package/themes/presets/water.json +22 -0
- package/themes/registry.json +116 -0
- package/themes/table-styles/academic.json +30 -0
- package/themes/table-styles/borderless.json +26 -0
- package/themes/table-styles/compact.json +24 -0
- package/themes/table-styles/grid.json +22 -0
- package/themes/table-styles/high-contrast.json +22 -0
- package/themes/table-styles/minimal-gray.json +26 -0
- package/themes/table-styles/modern-tech.json +34 -0
- package/themes/table-styles/professional.json +34 -0
- package/themes/table-styles/vscode-clean.json +26 -0
- package/themes/table-styles/zebra.json +22 -0
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
{
|
|
2
|
+
"fonts": {
|
|
3
|
+
"Times New Roman": {
|
|
4
|
+
"name": "Times New Roman",
|
|
5
|
+
"displayName": "Times New Roman",
|
|
6
|
+
"webFallback": "'Times New Roman', Times, Georgia, serif, SimSun, STSong",
|
|
7
|
+
"docx": {
|
|
8
|
+
"ascii": "Times New Roman",
|
|
9
|
+
"eastAsia": "SimSun"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"Arial": {
|
|
13
|
+
"name": "Arial",
|
|
14
|
+
"displayName": "Arial",
|
|
15
|
+
"webFallback": "Arial, Helvetica, 'Helvetica Neue', sans-serif, SimHei, STHeiti",
|
|
16
|
+
"docx": {
|
|
17
|
+
"ascii": "Arial",
|
|
18
|
+
"eastAsia": "SimHei"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"Georgia": {
|
|
22
|
+
"name": "Georgia",
|
|
23
|
+
"displayName": "Georgia",
|
|
24
|
+
"webFallback": "Georgia, 'Times New Roman', Times, serif, SimSun, STSong",
|
|
25
|
+
"docx": {
|
|
26
|
+
"ascii": "Georgia",
|
|
27
|
+
"eastAsia": "SimSun"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"Monaco": {
|
|
31
|
+
"name": "Monaco",
|
|
32
|
+
"displayName": "Monaco",
|
|
33
|
+
"webFallback": "Monaco, 'Courier New', monospace, FangSong, STFangsong, 'Zhuque Fangsong'",
|
|
34
|
+
"docx": {
|
|
35
|
+
"ascii": "Consolas",
|
|
36
|
+
"eastAsia": "FangSong"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"Courier New": {
|
|
40
|
+
"name": "Courier New",
|
|
41
|
+
"displayName": "Courier New",
|
|
42
|
+
"webFallback": "'Courier New', Courier, Monaco, FangSong, STFangsong, 'Zhuque Fangsong', monospace",
|
|
43
|
+
"docx": {
|
|
44
|
+
"ascii": "Courier New",
|
|
45
|
+
"eastAsia": "FangSong"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"SimSun": {
|
|
49
|
+
"name": "SimSun",
|
|
50
|
+
"displayName": "宋体 (SimSun)",
|
|
51
|
+
"webFallback": "'Times New Roman', serif, SimSun, STSong",
|
|
52
|
+
"docx": {
|
|
53
|
+
"ascii": "Times New Roman",
|
|
54
|
+
"eastAsia": "SimSun"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"SimHei": {
|
|
58
|
+
"name": "SimHei",
|
|
59
|
+
"displayName": "黑体 (SimHei)",
|
|
60
|
+
"webFallback": "Arial, sans-serif, SimHei, STHeiti",
|
|
61
|
+
"docx": {
|
|
62
|
+
"ascii": "Arial",
|
|
63
|
+
"eastAsia": "SimHei"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"KaiTi": {
|
|
67
|
+
"name": "KaiTi",
|
|
68
|
+
"displayName": "楷体 (KaiTi)",
|
|
69
|
+
"webFallback": "'KaiTi', 'STKaiti', 'Kaiti SC', 'Kai', serif, SimSun",
|
|
70
|
+
"docx": {
|
|
71
|
+
"ascii": "Times New Roman",
|
|
72
|
+
"eastAsia": "楷体"
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"FangSong": {
|
|
76
|
+
"name": "FangSong",
|
|
77
|
+
"displayName": "仿宋 (FangSong)",
|
|
78
|
+
"webFallback": "FangSong, STFangsong, 'Zhuque Fangsong', 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans CJK SC', 'Microsoft YaHei', Georgia, 'Times New Roman', serif",
|
|
79
|
+
"docx": {
|
|
80
|
+
"ascii": "Georgia",
|
|
81
|
+
"eastAsia": "FangSong"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"Palatino": {
|
|
85
|
+
"name": "Palatino",
|
|
86
|
+
"displayName": "Palatino",
|
|
87
|
+
"webFallback": "Palatino, Georgia, 'Times New Roman', serif, STSong, SimSun",
|
|
88
|
+
"docx": {
|
|
89
|
+
"ascii": "Palatino Linotype",
|
|
90
|
+
"eastAsia": "SimSun"
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
"Verdana": {
|
|
94
|
+
"name": "Verdana",
|
|
95
|
+
"displayName": "Verdana",
|
|
96
|
+
"webFallback": "Verdana, Geneva, Tahoma, Arial, sans-serif, SimHei",
|
|
97
|
+
"docx": {
|
|
98
|
+
"ascii": "Verdana",
|
|
99
|
+
"eastAsia": "SimHei"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"Tahoma": {
|
|
103
|
+
"name": "Tahoma",
|
|
104
|
+
"displayName": "Tahoma",
|
|
105
|
+
"webFallback": "Tahoma, Verdana, Arial, sans-serif, SimHei",
|
|
106
|
+
"docx": {
|
|
107
|
+
"ascii": "Tahoma",
|
|
108
|
+
"eastAsia": "SimHei"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"Trebuchet MS": {
|
|
112
|
+
"name": "Trebuchet MS",
|
|
113
|
+
"displayName": "Trebuchet MS",
|
|
114
|
+
"webFallback": "'Trebuchet MS', Tahoma, Arial, sans-serif, SimHei",
|
|
115
|
+
"docx": {
|
|
116
|
+
"ascii": "Trebuchet MS",
|
|
117
|
+
"eastAsia": "SimHei"
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"Comic Sans MS": {
|
|
121
|
+
"name": "Comic Sans MS",
|
|
122
|
+
"displayName": "Comic Sans MS",
|
|
123
|
+
"webFallback": "'Comic Sans MS', 'Comic Neue', 'Marker Felt', FangSong, STFangsong, 'Zhuque Fangsong'",
|
|
124
|
+
"docx": {
|
|
125
|
+
"ascii": "Comic Sans MS",
|
|
126
|
+
"eastAsia": "FangSong"
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
"Impact": {
|
|
130
|
+
"name": "Impact",
|
|
131
|
+
"displayName": "Impact",
|
|
132
|
+
"webFallback": "Impact, 'Arial Black', Arial, sans-serif, SimHei",
|
|
133
|
+
"docx": {
|
|
134
|
+
"ascii": "Impact",
|
|
135
|
+
"eastAsia": "SimHei"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"Lucida Grande": {
|
|
139
|
+
"name": "Lucida Grande",
|
|
140
|
+
"displayName": "Lucida Grande",
|
|
141
|
+
"webFallback": "'Lucida Grande', Geneva, Verdana, Arial, sans-serif, STHeiti, SimHei",
|
|
142
|
+
"docx": {
|
|
143
|
+
"ascii": "Lucida Sans Unicode",
|
|
144
|
+
"eastAsia": "SimHei"
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"Palatino Linotype": {
|
|
148
|
+
"name": "Palatino Linotype",
|
|
149
|
+
"displayName": "Palatino Linotype",
|
|
150
|
+
"webFallback": "'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif, SimSun, STSong",
|
|
151
|
+
"docx": {
|
|
152
|
+
"ascii": "Palatino Linotype",
|
|
153
|
+
"eastAsia": "SimSun"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
"Consolas": {
|
|
157
|
+
"name": "Consolas",
|
|
158
|
+
"displayName": "Consolas",
|
|
159
|
+
"webFallback": "Consolas, Monaco, 'Courier New', monospace, FangSong, STFangsong, 'Zhuque Fangsong'",
|
|
160
|
+
"docx": {
|
|
161
|
+
"ascii": "Consolas",
|
|
162
|
+
"eastAsia": "FangSong"
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"system-ui": {
|
|
166
|
+
"name": "system-ui",
|
|
167
|
+
"displayName": "系统字体 (System UI)",
|
|
168
|
+
"webFallback": "-apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif, 'PingFang SC', 'Microsoft YaHei'",
|
|
169
|
+
"docx": {
|
|
170
|
+
"ascii": "Segoe UI",
|
|
171
|
+
"eastAsia": "Microsoft YaHei"
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
"SF Mono": {
|
|
175
|
+
"name": "SF Mono",
|
|
176
|
+
"displayName": "SF Mono",
|
|
177
|
+
"webFallback": "'SF Mono', Monaco, Menlo, Consolas, 'Ubuntu Mono', 'Liberation Mono', 'DejaVu Sans Mono', 'Courier New', monospace, FangSong, STFangsong",
|
|
178
|
+
"docx": {
|
|
179
|
+
"ascii": "Consolas",
|
|
180
|
+
"eastAsia": "FangSong"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
"Garamond": {
|
|
184
|
+
"name": "Garamond",
|
|
185
|
+
"displayName": "Garamond",
|
|
186
|
+
"webFallback": "Garamond, 'Times New Roman', Georgia, serif, SimSun, STSong",
|
|
187
|
+
"docx": {
|
|
188
|
+
"ascii": "Garamond",
|
|
189
|
+
"eastAsia": "SimSun"
|
|
190
|
+
}
|
|
191
|
+
},
|
|
192
|
+
"Helvetica Neue": {
|
|
193
|
+
"name": "Helvetica Neue",
|
|
194
|
+
"displayName": "Helvetica Neue",
|
|
195
|
+
"webFallback": "'Helvetica Neue', Helvetica, Arial, sans-serif, SimHei, STHeiti",
|
|
196
|
+
"docx": {
|
|
197
|
+
"ascii": "Arial",
|
|
198
|
+
"eastAsia": "SimHei"
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"Century Gothic": {
|
|
202
|
+
"name": "Century Gothic",
|
|
203
|
+
"displayName": "Century Gothic",
|
|
204
|
+
"webFallback": "'Century Gothic', 'Apple Gothic', Arial, sans-serif, SimHei, STHeiti",
|
|
205
|
+
"docx": {
|
|
206
|
+
"ascii": "Century Gothic",
|
|
207
|
+
"eastAsia": "SimHei"
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "book",
|
|
3
|
+
"name": "书籍排版",
|
|
4
|
+
"name_en": "Book",
|
|
5
|
+
"description": "舒适阅读的布局,适合长文档和书籍",
|
|
6
|
+
"description_en": "Comfortable reading layout for long documents and books",
|
|
7
|
+
|
|
8
|
+
"body": {
|
|
9
|
+
"fontSize": "13pt",
|
|
10
|
+
"lineHeight": 1.75
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
"headings": {
|
|
14
|
+
"h1": { "fontSize": "28pt", "spacingBefore": "0pt", "spacingAfter": "16pt", "alignment": "center" },
|
|
15
|
+
"h2": { "fontSize": "22pt", "spacingBefore": "22pt", "spacingAfter": "10pt" },
|
|
16
|
+
"h3": { "fontSize": "18pt", "spacingBefore": "18pt", "spacingAfter": "8pt" },
|
|
17
|
+
"h4": { "fontSize": "15pt", "spacingBefore": "14pt", "spacingAfter": "7pt" },
|
|
18
|
+
"h5": { "fontSize": "13pt", "spacingBefore": "12pt", "spacingAfter": "6pt" },
|
|
19
|
+
"h6": { "fontSize": "12pt", "spacingBefore": "10pt", "spacingAfter": "5pt" }
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
"code": {
|
|
23
|
+
"fontSize": "11pt"
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
"blocks": {
|
|
27
|
+
"paragraph": { "spacingAfter": "12pt", "firstLineIndent": true },
|
|
28
|
+
"list": { "spacingAfter": "14pt" },
|
|
29
|
+
"listItem": { "spacingAfter": "4pt" },
|
|
30
|
+
"blockquote": {
|
|
31
|
+
"spacingBefore": "12pt",
|
|
32
|
+
"spacingAfter": "12pt",
|
|
33
|
+
"paddingVertical": "2pt",
|
|
34
|
+
"paddingHorizontal": "15pt"
|
|
35
|
+
},
|
|
36
|
+
"codeBlock": { "spacingAfter": "14pt" },
|
|
37
|
+
"table": { "spacingAfter": "14pt" },
|
|
38
|
+
"horizontalRule": { "spacingBefore": "24pt", "spacingAfter": "24pt" }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "compact",
|
|
3
|
+
"name": "紧凑",
|
|
4
|
+
"name_en": "Compact",
|
|
5
|
+
"description": "信息密度高的紧凑布局,适合技术文档、管理后台",
|
|
6
|
+
"description_en": "Dense layout for technical documentation and admin UIs",
|
|
7
|
+
|
|
8
|
+
"body": {
|
|
9
|
+
"fontSize": "11pt",
|
|
10
|
+
"lineHeight": 1.55
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
"headings": {
|
|
14
|
+
"h1": { "fontSize": "20pt", "spacingBefore": "0pt", "spacingAfter": "10pt" },
|
|
15
|
+
"h2": { "fontSize": "17pt", "spacingBefore": "14pt", "spacingAfter": "7pt" },
|
|
16
|
+
"h3": { "fontSize": "15pt", "spacingBefore": "12pt", "spacingAfter": "6pt" },
|
|
17
|
+
"h4": { "fontSize": "13pt", "spacingBefore": "10pt", "spacingAfter": "5pt" },
|
|
18
|
+
"h5": { "fontSize": "12pt", "spacingBefore": "8pt", "spacingAfter": "4pt" },
|
|
19
|
+
"h6": { "fontSize": "11pt", "spacingBefore": "6pt", "spacingAfter": "3pt" }
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
"code": {
|
|
23
|
+
"fontSize": "10pt"
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
"blocks": {
|
|
27
|
+
"paragraph": { "spacingAfter": "8pt", "firstLineIndent": false },
|
|
28
|
+
"list": { "spacingAfter": "10pt" },
|
|
29
|
+
"listItem": { "spacingAfter": "2pt" },
|
|
30
|
+
"blockquote": {
|
|
31
|
+
"spacingBefore": "8pt",
|
|
32
|
+
"spacingAfter": "8pt",
|
|
33
|
+
"paddingVertical": "1pt",
|
|
34
|
+
"paddingHorizontal": "12pt"
|
|
35
|
+
},
|
|
36
|
+
"codeBlock": { "spacingAfter": "10pt" },
|
|
37
|
+
"table": { "spacingAfter": "10pt" },
|
|
38
|
+
"horizontalRule": { "spacingBefore": "16pt", "spacingAfter": "16pt" }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "display",
|
|
3
|
+
"name": "展示",
|
|
4
|
+
"name_en": "Display",
|
|
5
|
+
"description": "大字号与宽阔留白,适合演示、封面与重点展示",
|
|
6
|
+
"description_en": "Large type and generous whitespace for showcases and keynotes",
|
|
7
|
+
|
|
8
|
+
"body": {
|
|
9
|
+
"fontSize": "14pt",
|
|
10
|
+
"lineHeight": 1.8
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
"headings": {
|
|
14
|
+
"h1": { "fontSize": "36pt", "spacingBefore": "0pt", "spacingAfter": "18pt", "alignment": "left" },
|
|
15
|
+
"h2": { "fontSize": "28pt", "spacingBefore": "28pt", "spacingAfter": "12pt" },
|
|
16
|
+
"h3": { "fontSize": "22pt", "spacingBefore": "20pt", "spacingAfter": "10pt" },
|
|
17
|
+
"h4": { "fontSize": "18pt", "spacingBefore": "16pt", "spacingAfter": "8pt" },
|
|
18
|
+
"h5": { "fontSize": "16pt", "spacingBefore": "12pt", "spacingAfter": "6pt" },
|
|
19
|
+
"h6": { "fontSize": "14pt", "spacingBefore": "10pt", "spacingAfter": "5pt" }
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
"code": {
|
|
23
|
+
"fontSize": "12pt"
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
"blocks": {
|
|
27
|
+
"paragraph": { "spacingAfter": "14pt", "firstLineIndent": false },
|
|
28
|
+
"list": { "spacingAfter": "16pt" },
|
|
29
|
+
"listItem": { "spacingAfter": "4pt" },
|
|
30
|
+
"blockquote": {
|
|
31
|
+
"spacingBefore": "16pt",
|
|
32
|
+
"spacingAfter": "16pt",
|
|
33
|
+
"paddingVertical": "6pt",
|
|
34
|
+
"paddingHorizontal": "20pt"
|
|
35
|
+
},
|
|
36
|
+
"codeBlock": { "spacingAfter": "16pt" },
|
|
37
|
+
"table": { "spacingAfter": "16pt" },
|
|
38
|
+
"horizontalRule": { "spacingBefore": "28pt", "spacingAfter": "28pt" }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "editorial",
|
|
3
|
+
"name": "编辑",
|
|
4
|
+
"name_en": "Editorial",
|
|
5
|
+
"description": "强烈的层级感,h2 下划线、h3 侧竖线,适合专栏与长文",
|
|
6
|
+
"description_en": "Strong hierarchy with h2 underline and h3 side rule for features and long reads",
|
|
7
|
+
|
|
8
|
+
"body": {
|
|
9
|
+
"fontSize": "13pt",
|
|
10
|
+
"lineHeight": 1.75
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
"headings": {
|
|
14
|
+
"h1": { "fontSize": "32pt", "spacingBefore": "0pt", "spacingAfter": "16pt" },
|
|
15
|
+
"h2": { "fontSize": "24pt", "spacingBefore": "24pt", "spacingAfter": "10pt" },
|
|
16
|
+
"h3": { "fontSize": "19pt", "spacingBefore": "18pt", "spacingAfter": "8pt" },
|
|
17
|
+
"h4": { "fontSize": "16pt", "spacingBefore": "14pt", "spacingAfter": "6pt" },
|
|
18
|
+
"h5": { "fontSize": "14pt", "spacingBefore": "10pt", "spacingAfter": "5pt" },
|
|
19
|
+
"h6": { "fontSize": "13pt", "spacingBefore": "8pt", "spacingAfter": "4pt" }
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
"code": {
|
|
23
|
+
"fontSize": "11pt"
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
"blocks": {
|
|
27
|
+
"paragraph": { "spacingAfter": "12pt", "firstLineIndent": true },
|
|
28
|
+
"list": { "spacingAfter": "14pt" },
|
|
29
|
+
"listItem": { "spacingAfter": "4pt" },
|
|
30
|
+
"blockquote": {
|
|
31
|
+
"spacingBefore": "14pt",
|
|
32
|
+
"spacingAfter": "14pt",
|
|
33
|
+
"paddingVertical": "4pt",
|
|
34
|
+
"paddingHorizontal": "18pt"
|
|
35
|
+
},
|
|
36
|
+
"codeBlock": { "spacingAfter": "14pt" },
|
|
37
|
+
"table": { "spacingAfter": "14pt" },
|
|
38
|
+
"horizontalRule": { "spacingBefore": "24pt", "spacingAfter": "24pt" }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "formal-paper",
|
|
3
|
+
"name": "论文排版",
|
|
4
|
+
"name_en": "Formal Paper",
|
|
5
|
+
"description": "中文学术论文排版:宋体正文、黑体标题分层、1.5 倍行距、首行缩进",
|
|
6
|
+
"description_en": "Chinese academic paper layout with Song body, Hei headings and 1.5 line spacing",
|
|
7
|
+
|
|
8
|
+
"body": {
|
|
9
|
+
"fontSize": "12pt",
|
|
10
|
+
"lineHeight": 1.5
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
"headings": {
|
|
14
|
+
"h1": { "fontSize": "16pt", "spacingBefore": "0pt", "spacingAfter": "14pt", "alignment": "center" },
|
|
15
|
+
"h2": { "fontSize": "14pt", "spacingBefore": "14pt", "spacingAfter": "8pt" },
|
|
16
|
+
"h3": { "fontSize": "12pt", "spacingBefore": "12pt", "spacingAfter": "6pt" },
|
|
17
|
+
"h4": { "fontSize": "12pt", "spacingBefore": "10pt", "spacingAfter": "6pt" },
|
|
18
|
+
"h5": { "fontSize": "12pt", "spacingBefore": "8pt", "spacingAfter": "4pt" },
|
|
19
|
+
"h6": { "fontSize": "12pt", "spacingBefore": "6pt", "spacingAfter": "4pt" }
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
"code": {
|
|
23
|
+
"fontSize": "10pt"
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
"blocks": {
|
|
27
|
+
"paragraph": { "spacingAfter": "6pt", "firstLineIndent": true },
|
|
28
|
+
"list": { "spacingAfter": "6pt" },
|
|
29
|
+
"listItem": { "spacingAfter": "2pt" },
|
|
30
|
+
"blockquote": {
|
|
31
|
+
"spacingBefore": "10pt",
|
|
32
|
+
"spacingAfter": "10pt",
|
|
33
|
+
"paddingVertical": "2pt",
|
|
34
|
+
"paddingHorizontal": "14pt"
|
|
35
|
+
},
|
|
36
|
+
"codeBlock": { "spacingAfter": "10pt" },
|
|
37
|
+
"table": { "spacingAfter": "8pt" },
|
|
38
|
+
"horizontalRule": { "spacingBefore": "16pt", "spacingAfter": "16pt" }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "formal",
|
|
3
|
+
"name": "正式文书",
|
|
4
|
+
"name_en": "Formal",
|
|
5
|
+
"description": "仿党政机关公文排版:仿宋正文、黑体/楷体标题、首行缩进、1.75 倍行距",
|
|
6
|
+
"description_en": "Government-style official document layout with FangSong body, Hei/Kai headings and first-line indent",
|
|
7
|
+
|
|
8
|
+
"body": {
|
|
9
|
+
"fontSize": "16pt",
|
|
10
|
+
"lineHeight": 1.75
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
"headings": {
|
|
14
|
+
"h1": { "fontSize": "22pt", "spacingBefore": "0pt", "spacingAfter": "14pt", "alignment": "center" },
|
|
15
|
+
"h2": { "fontSize": "16pt", "spacingBefore": "16pt", "spacingAfter": "8pt" },
|
|
16
|
+
"h3": { "fontSize": "16pt", "spacingBefore": "14pt", "spacingAfter": "6pt" },
|
|
17
|
+
"h4": { "fontSize": "16pt", "spacingBefore": "12pt", "spacingAfter": "6pt" },
|
|
18
|
+
"h5": { "fontSize": "16pt", "spacingBefore": "10pt", "spacingAfter": "4pt" },
|
|
19
|
+
"h6": { "fontSize": "16pt", "spacingBefore": "8pt", "spacingAfter": "4pt" }
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
"code": {
|
|
23
|
+
"fontSize": "12pt"
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
"blocks": {
|
|
27
|
+
"paragraph": { "spacingAfter": "0pt", "firstLineIndent": true },
|
|
28
|
+
"list": { "spacingAfter": "4pt" },
|
|
29
|
+
"listItem": { "spacingAfter": "2pt" },
|
|
30
|
+
"blockquote": {
|
|
31
|
+
"spacingBefore": "12pt",
|
|
32
|
+
"spacingAfter": "12pt",
|
|
33
|
+
"paddingVertical": "2pt",
|
|
34
|
+
"paddingHorizontal": "14pt"
|
|
35
|
+
},
|
|
36
|
+
"codeBlock": { "spacingAfter": "12pt" },
|
|
37
|
+
"table": { "spacingAfter": "8pt" },
|
|
38
|
+
"horizontalRule": { "spacingBefore": "20pt", "spacingAfter": "20pt" }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "magazine",
|
|
3
|
+
"name": "杂志风格",
|
|
4
|
+
"name_en": "Magazine",
|
|
5
|
+
"description": "大标题差异的布局,适合杂志和创意文档",
|
|
6
|
+
"description_en": "Large heading contrast layout for magazines and creative documents",
|
|
7
|
+
|
|
8
|
+
"body": {
|
|
9
|
+
"fontSize": "13pt",
|
|
10
|
+
"lineHeight": 1.7
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
"headings": {
|
|
14
|
+
"h1": { "fontSize": "32pt", "spacingBefore": "0pt", "spacingAfter": "18pt" },
|
|
15
|
+
"h2": { "fontSize": "24pt", "spacingBefore": "22pt", "spacingAfter": "10pt" },
|
|
16
|
+
"h3": { "fontSize": "19pt", "spacingBefore": "18pt", "spacingAfter": "8pt" },
|
|
17
|
+
"h4": { "fontSize": "16pt", "spacingBefore": "14pt", "spacingAfter": "7pt" },
|
|
18
|
+
"h5": { "fontSize": "14pt", "spacingBefore": "12pt", "spacingAfter": "6pt" },
|
|
19
|
+
"h6": { "fontSize": "13pt", "spacingBefore": "10pt", "spacingAfter": "5pt" }
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
"code": {
|
|
23
|
+
"fontSize": "11pt"
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
"blocks": {
|
|
27
|
+
"paragraph": { "spacingAfter": "10pt", "firstLineIndent": false },
|
|
28
|
+
"list": { "spacingAfter": "13pt" },
|
|
29
|
+
"listItem": { "spacingAfter": "3pt" },
|
|
30
|
+
"blockquote": {
|
|
31
|
+
"spacingBefore": "12pt",
|
|
32
|
+
"spacingAfter": "12pt",
|
|
33
|
+
"paddingVertical": "2pt",
|
|
34
|
+
"paddingHorizontal": "16pt"
|
|
35
|
+
},
|
|
36
|
+
"codeBlock": { "spacingAfter": "12pt" },
|
|
37
|
+
"table": { "spacingAfter": "12pt" },
|
|
38
|
+
"horizontalRule": { "spacingBefore": "20pt", "spacingAfter": "20pt" }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "regular",
|
|
3
|
+
"name": "标准",
|
|
4
|
+
"name_en": "Regular",
|
|
5
|
+
"description": "均衡的标准布局,适合日常写作与多数文档",
|
|
6
|
+
"description_en": "Balanced default layout for everyday writing",
|
|
7
|
+
|
|
8
|
+
"body": {
|
|
9
|
+
"fontSize": "12pt",
|
|
10
|
+
"lineHeight": 1.7
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
"headings": {
|
|
14
|
+
"h1": { "fontSize": "26pt", "spacingBefore": "0pt", "spacingAfter": "14pt", "alignment": "center" },
|
|
15
|
+
"h2": { "fontSize": "21pt", "spacingBefore": "20pt", "spacingAfter": "10pt" },
|
|
16
|
+
"h3": { "fontSize": "17pt", "spacingBefore": "16pt", "spacingAfter": "8pt" },
|
|
17
|
+
"h4": { "fontSize": "14pt", "spacingBefore": "12pt", "spacingAfter": "6pt" },
|
|
18
|
+
"h5": { "fontSize": "13pt", "spacingBefore": "10pt", "spacingAfter": "5pt" },
|
|
19
|
+
"h6": { "fontSize": "12pt", "spacingBefore": "8pt", "spacingAfter": "4pt" }
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
"code": {
|
|
23
|
+
"fontSize": "11pt"
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
"blocks": {
|
|
27
|
+
"paragraph": { "spacingAfter": "10pt", "firstLineIndent": true },
|
|
28
|
+
"list": { "spacingAfter": "12pt" },
|
|
29
|
+
"listItem": { "spacingAfter": "3pt" },
|
|
30
|
+
"blockquote": {
|
|
31
|
+
"spacingBefore": "12pt",
|
|
32
|
+
"spacingAfter": "12pt",
|
|
33
|
+
"paddingVertical": "2pt",
|
|
34
|
+
"paddingHorizontal": "14pt"
|
|
35
|
+
},
|
|
36
|
+
"codeBlock": { "spacingAfter": "12pt" },
|
|
37
|
+
"table": { "spacingAfter": "12pt" },
|
|
38
|
+
"horizontalRule": { "spacingBefore": "20pt", "spacingAfter": "20pt" }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "standard",
|
|
3
|
+
"name": "标准",
|
|
4
|
+
"name_en": "Standard",
|
|
5
|
+
"description": "小四正文、层级标题、首行缩进,适合通用文档与内部材料",
|
|
6
|
+
"description_en": "Small-four body with hierarchical headings and first-line indent for general documents",
|
|
7
|
+
|
|
8
|
+
"body": {
|
|
9
|
+
"fontSize": "12pt",
|
|
10
|
+
"lineHeight": 1.5
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
"headings": {
|
|
14
|
+
"h1": { "fontSize": "18pt", "spacingBefore": "0pt", "spacingAfter": "12pt", "alignment": "center" },
|
|
15
|
+
"h2": { "fontSize": "16pt", "spacingBefore": "14pt", "spacingAfter": "8pt" },
|
|
16
|
+
"h3": { "fontSize": "14pt", "spacingBefore": "12pt", "spacingAfter": "6pt" },
|
|
17
|
+
"h4": { "fontSize": "12pt", "spacingBefore": "10pt", "spacingAfter": "6pt" },
|
|
18
|
+
"h5": { "fontSize": "12pt", "spacingBefore": "8pt", "spacingAfter": "4pt" },
|
|
19
|
+
"h6": { "fontSize": "12pt", "spacingBefore": "6pt", "spacingAfter": "4pt" }
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
"code": {
|
|
23
|
+
"fontSize": "10.5pt"
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
"blocks": {
|
|
27
|
+
"paragraph": { "spacingAfter": "0pt", "firstLineIndent": true },
|
|
28
|
+
"list": { "spacingAfter": "4pt" },
|
|
29
|
+
"listItem": { "spacingAfter": "2pt" },
|
|
30
|
+
"blockquote": {
|
|
31
|
+
"spacingBefore": "10pt",
|
|
32
|
+
"spacingAfter": "10pt",
|
|
33
|
+
"paddingVertical": "2pt",
|
|
34
|
+
"paddingHorizontal": "14pt"
|
|
35
|
+
},
|
|
36
|
+
"codeBlock": { "spacingAfter": "10pt" },
|
|
37
|
+
"table": { "spacingAfter": "8pt" },
|
|
38
|
+
"horizontalRule": { "spacingBefore": "16pt", "spacingAfter": "16pt" }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "vscode",
|
|
3
|
+
"name": "VSCode 预览",
|
|
4
|
+
"name_en": "VSCode Preview",
|
|
5
|
+
"description": "复刻 VSCode 内置 Markdown 预览的字号、行高与间距",
|
|
6
|
+
"description_en": "Mirrors VSCode's built-in Markdown preview sizing, line-height and spacing",
|
|
7
|
+
|
|
8
|
+
"body": {
|
|
9
|
+
"fontSize": "10.5pt",
|
|
10
|
+
"lineHeight": 1.571
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
"headings": {
|
|
14
|
+
"h1": {
|
|
15
|
+
"fontSize": "21pt",
|
|
16
|
+
"spacingBefore": "0pt",
|
|
17
|
+
"spacingAfter": "12pt",
|
|
18
|
+
"lineHeight": 1.25,
|
|
19
|
+
"borderBottom": {
|
|
20
|
+
"width": "1px",
|
|
21
|
+
"paddingBottom": "0.3em"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"h2": {
|
|
25
|
+
"fontSize": "15.75pt",
|
|
26
|
+
"spacingBefore": "18pt",
|
|
27
|
+
"spacingAfter": "12pt",
|
|
28
|
+
"lineHeight": 1.25,
|
|
29
|
+
"borderBottom": {
|
|
30
|
+
"width": "1px",
|
|
31
|
+
"paddingBottom": "0.3em"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"h3": { "fontSize": "13.125pt", "spacingBefore": "18pt", "spacingAfter": "12pt", "lineHeight": 1.25 },
|
|
35
|
+
"h4": { "fontSize": "10.5pt", "spacingBefore": "18pt", "spacingAfter": "12pt", "lineHeight": 1.25 },
|
|
36
|
+
"h5": { "fontSize": "9.1875pt", "spacingBefore": "18pt", "spacingAfter": "12pt", "lineHeight": 1.25 },
|
|
37
|
+
"h6": { "fontSize": "8.925pt", "spacingBefore": "18pt", "spacingAfter": "12pt", "lineHeight": 1.25 }
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
"code": {
|
|
41
|
+
"fontSize": "10.5pt"
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
"blocks": {
|
|
45
|
+
"paragraph": { "spacingAfter": "12pt", "firstLineIndent": false },
|
|
46
|
+
"list": { "spacingAfter": "7.35pt" },
|
|
47
|
+
"listItem": { "spacingAfter": "0pt" },
|
|
48
|
+
"blockquote": {
|
|
49
|
+
"spacingBefore": "12pt",
|
|
50
|
+
"spacingAfter": "12pt",
|
|
51
|
+
"paddingVertical": "0pt",
|
|
52
|
+
"paddingHorizontal": "12pt"
|
|
53
|
+
},
|
|
54
|
+
"codeBlock": { "spacingAfter": "12pt" },
|
|
55
|
+
"table": { "spacingAfter": "7.35pt" },
|
|
56
|
+
"horizontalRule": {
|
|
57
|
+
"spacingBefore": "12pt",
|
|
58
|
+
"spacingAfter": "12pt",
|
|
59
|
+
"borderWidth": "1px"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|