md2x 0.1.0

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.
Files changed (127) hide show
  1. package/README.md +43 -0
  2. package/dist/index.d.ts +1 -0
  3. package/dist/index.mjs +128069 -0
  4. package/dist/md2x.mjs +128296 -0
  5. package/dist/renderer/puppeteer-render-worker.js +815 -0
  6. package/dist/renderer/puppeteer-render.html +2829 -0
  7. package/dist/themes/code-themes/business-contrast.json +31 -0
  8. package/dist/themes/code-themes/colorful.json +32 -0
  9. package/dist/themes/code-themes/cool-modern.json +31 -0
  10. package/dist/themes/code-themes/high-contrast.json +31 -0
  11. package/dist/themes/code-themes/light-clean.json +31 -0
  12. package/dist/themes/code-themes/warm-book.json +31 -0
  13. package/dist/themes/color-schemes/candy.json +34 -0
  14. package/dist/themes/color-schemes/cool.json +34 -0
  15. package/dist/themes/color-schemes/coral.json +34 -0
  16. package/dist/themes/color-schemes/dino.json +34 -0
  17. package/dist/themes/color-schemes/forest.json +34 -0
  18. package/dist/themes/color-schemes/garden.json +34 -0
  19. package/dist/themes/color-schemes/neutral.json +34 -0
  20. package/dist/themes/color-schemes/ocean.json +34 -0
  21. package/dist/themes/color-schemes/rainbow.json +43 -0
  22. package/dist/themes/color-schemes/sakura.json +34 -0
  23. package/dist/themes/color-schemes/sepia.json +34 -0
  24. package/dist/themes/color-schemes/space.json +34 -0
  25. package/dist/themes/color-schemes/starry.json +34 -0
  26. package/dist/themes/color-schemes/sunset.json +34 -0
  27. package/dist/themes/color-schemes/warm.json +34 -0
  28. package/dist/themes/font-config.json +184 -0
  29. package/dist/themes/layout-schemes/academic.json +40 -0
  30. package/dist/themes/layout-schemes/book.json +40 -0
  31. package/dist/themes/layout-schemes/document.json +40 -0
  32. package/dist/themes/layout-schemes/magazine.json +40 -0
  33. package/dist/themes/layout-schemes/student.json +40 -0
  34. package/dist/themes/layout-schemes/technical.json +40 -0
  35. package/dist/themes/presets/academic.json +24 -0
  36. package/dist/themes/presets/business.json +22 -0
  37. package/dist/themes/presets/candy.json +23 -0
  38. package/dist/themes/presets/century.json +22 -0
  39. package/dist/themes/presets/coral.json +22 -0
  40. package/dist/themes/presets/default.json +22 -0
  41. package/dist/themes/presets/dinosaur.json +23 -0
  42. package/dist/themes/presets/elegant.json +22 -0
  43. package/dist/themes/presets/forest.json +22 -0
  44. package/dist/themes/presets/garamond.json +22 -0
  45. package/dist/themes/presets/garden.json +23 -0
  46. package/dist/themes/presets/handwritten.json +23 -0
  47. package/dist/themes/presets/heiti.json +22 -0
  48. package/dist/themes/presets/magazine.json +24 -0
  49. package/dist/themes/presets/manuscript.json +22 -0
  50. package/dist/themes/presets/minimal.json +22 -0
  51. package/dist/themes/presets/mixed.json +24 -0
  52. package/dist/themes/presets/newspaper.json +24 -0
  53. package/dist/themes/presets/ocean.json +22 -0
  54. package/dist/themes/presets/palatino.json +22 -0
  55. package/dist/themes/presets/rainbow.json +23 -0
  56. package/dist/themes/presets/space.json +23 -0
  57. package/dist/themes/presets/starry.json +23 -0
  58. package/dist/themes/presets/sunset.json +22 -0
  59. package/dist/themes/presets/swiss.json +22 -0
  60. package/dist/themes/presets/technical.json +22 -0
  61. package/dist/themes/presets/typewriter.json +23 -0
  62. package/dist/themes/presets/verdana.json +22 -0
  63. package/dist/themes/presets/water.json +22 -0
  64. package/dist/themes/registry.json +270 -0
  65. package/dist/themes/table-styles/academic.json +30 -0
  66. package/dist/themes/table-styles/borderless.json +26 -0
  67. package/dist/themes/table-styles/compact.json +24 -0
  68. package/dist/themes/table-styles/grid.json +22 -0
  69. package/dist/themes/table-styles/high-contrast.json +22 -0
  70. package/dist/themes/table-styles/minimal-gray.json +26 -0
  71. package/dist/themes/table-styles/modern-tech.json +34 -0
  72. package/dist/themes/table-styles/professional.json +34 -0
  73. package/dist/themes/table-styles/zebra.json +22 -0
  74. package/dist/types/node/src/host/browser-renderer.d.ts +40 -0
  75. package/dist/types/node/src/host/node-exporter.d.ts +63 -0
  76. package/dist/types/node/src/host/node-platform.d.ts +30 -0
  77. package/dist/types/node/src/index.d.ts +8 -0
  78. package/dist/types/src/core/markdown-block-splitter.d.ts +16 -0
  79. package/dist/types/src/core/markdown-document.d.ts +286 -0
  80. package/dist/types/src/core/markdown-processor.d.ts +228 -0
  81. package/dist/types/src/core/viewer/viewer-controller.d.ts +85 -0
  82. package/dist/types/src/exporters/docx-blockquote-converter.d.ts +24 -0
  83. package/dist/types/src/exporters/docx-code-highlighter.d.ts +14 -0
  84. package/dist/types/src/exporters/docx-download.d.ts +27 -0
  85. package/dist/types/src/exporters/docx-exporter.d.ts +77 -0
  86. package/dist/types/src/exporters/docx-image-utils.d.ts +71 -0
  87. package/dist/types/src/exporters/docx-inline-converter.d.ts +124 -0
  88. package/dist/types/src/exporters/docx-list-converter.d.ts +50 -0
  89. package/dist/types/src/exporters/docx-math-converter.d.ts +11 -0
  90. package/dist/types/src/exporters/docx-table-converter.d.ts +22 -0
  91. package/dist/types/src/exporters/mml2omml.d.ts +2 -0
  92. package/dist/types/src/exporters/theme-to-docx.d.ts +144 -0
  93. package/dist/types/src/plugins/base-plugin.d.ts +67 -0
  94. package/dist/types/src/plugins/canvas-plugin.d.ts +9 -0
  95. package/dist/types/src/plugins/dot-plugin.d.ts +9 -0
  96. package/dist/types/src/plugins/html-plugin.d.ts +28 -0
  97. package/dist/types/src/plugins/index.d.ts +56 -0
  98. package/dist/types/src/plugins/infographic-plugin.d.ts +9 -0
  99. package/dist/types/src/plugins/mermaid-plugin.d.ts +9 -0
  100. package/dist/types/src/plugins/plugin-content-utils.d.ts +40 -0
  101. package/dist/types/src/plugins/plugin-html-utils.d.ts +23 -0
  102. package/dist/types/src/plugins/rehype-image-uri.d.ts +13 -0
  103. package/dist/types/src/plugins/remark-super-sub.d.ts +17 -0
  104. package/dist/types/src/plugins/remark-toc-filter.d.ts +10 -0
  105. package/dist/types/src/plugins/svg-plugin.d.ts +51 -0
  106. package/dist/types/src/plugins/vega-plugin.d.ts +10 -0
  107. package/dist/types/src/plugins/vegalite-plugin.d.ts +23 -0
  108. package/dist/types/src/types/cache.d.ts +85 -0
  109. package/dist/types/src/types/core.d.ts +99 -0
  110. package/dist/types/src/types/docx.d.ts +240 -0
  111. package/dist/types/src/types/index.d.ts +18 -0
  112. package/dist/types/src/types/messaging.d.ts +142 -0
  113. package/dist/types/src/types/platform.d.ts +203 -0
  114. package/dist/types/src/types/plugin.d.ts +101 -0
  115. package/dist/types/src/types/render.d.ts +57 -0
  116. package/dist/types/src/types/theme.d.ts +234 -0
  117. package/dist/types/src/types/toolbar.d.ts +53 -0
  118. package/dist/types/src/ui/popup/i18n-helpers.d.ts +21 -0
  119. package/dist/types/src/ui/popup/settings-tab.d.ts +56 -0
  120. package/dist/types/src/ui/popup/storage-helper.d.ts +12 -0
  121. package/dist/types/src/utils/fetch-utils.d.ts +12 -0
  122. package/dist/types/src/utils/hash.d.ts +17 -0
  123. package/dist/types/src/utils/html-sanitizer.d.ts +26 -0
  124. package/dist/types/src/utils/localization.d.ts +49 -0
  125. package/dist/types/src/utils/theme-manager.d.ts +152 -0
  126. package/dist/types/src/utils/theme-to-css.d.ts +171 -0
  127. package/package.json +47 -0
@@ -0,0 +1,34 @@
1
+ {
2
+ "id": "sunset",
3
+ "name": "日落暖阳",
4
+ "name_en": "Sunset",
5
+ "description": "橙黄色系,温暖舒适的日落风格",
6
+ "description_en": "Orange-yellow scheme for warm and cozy sunset styles",
7
+
8
+ "text": {
9
+ "primary": "#431407",
10
+ "secondary": "#7c2d12",
11
+ "muted": "#c2410c"
12
+ },
13
+
14
+ "accent": {
15
+ "link": "#c2410c",
16
+ "linkHover": "#9a3412"
17
+ },
18
+
19
+ "background": {
20
+ "code": "#fff7ed"
21
+ },
22
+
23
+ "blockquote": {
24
+ "border": "#fdba74"
25
+ },
26
+
27
+ "table": {
28
+ "border": "#fdba74",
29
+ "headerBackground": "#fed7aa",
30
+ "headerText": "#431407",
31
+ "zebraEven": "#fff7ed",
32
+ "zebraOdd": "#fffbeb"
33
+ }
34
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "id": "warm",
3
+ "name": "暖色调",
4
+ "name_en": "Warm",
5
+ "description": "温暖的棕橙色系,适合文艺和手写风格",
6
+ "description_en": "Warm brown-orange scheme for literary and handwritten styles",
7
+
8
+ "text": {
9
+ "primary": "#1c1917",
10
+ "secondary": "#44403c",
11
+ "muted": "#78716c"
12
+ },
13
+
14
+ "accent": {
15
+ "link": "#b45309",
16
+ "linkHover": "#92400e"
17
+ },
18
+
19
+ "background": {
20
+ "code": "#faf5f0"
21
+ },
22
+
23
+ "blockquote": {
24
+ "border": "#a8a29e"
25
+ },
26
+
27
+ "table": {
28
+ "border": "#a8a29e",
29
+ "headerBackground": "#fef3e2",
30
+ "headerText": "#1c1917",
31
+ "zebraEven": "#fffbf5",
32
+ "zebraOdd": "#fffcf7"
33
+ }
34
+ }
@@ -0,0 +1,184 @@
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
+ "FangSong": {
67
+ "name": "FangSong",
68
+ "displayName": "仿宋 (FangSong)",
69
+ "webFallback": "FangSong, STFangsong, 'Zhuque Fangsong', Georgia, 'Times New Roman', serif",
70
+ "docx": {
71
+ "ascii": "Georgia",
72
+ "eastAsia": "FangSong"
73
+ }
74
+ },
75
+ "Palatino": {
76
+ "name": "Palatino",
77
+ "displayName": "Palatino",
78
+ "webFallback": "Palatino, Georgia, 'Times New Roman', serif, STSong, SimSun",
79
+ "docx": {
80
+ "ascii": "Palatino Linotype",
81
+ "eastAsia": "SimSun"
82
+ }
83
+ },
84
+ "Verdana": {
85
+ "name": "Verdana",
86
+ "displayName": "Verdana",
87
+ "webFallback": "Verdana, Geneva, Tahoma, Arial, sans-serif, SimHei",
88
+ "docx": {
89
+ "ascii": "Verdana",
90
+ "eastAsia": "SimHei"
91
+ }
92
+ },
93
+ "Tahoma": {
94
+ "name": "Tahoma",
95
+ "displayName": "Tahoma",
96
+ "webFallback": "Tahoma, Verdana, Arial, sans-serif, SimHei",
97
+ "docx": {
98
+ "ascii": "Tahoma",
99
+ "eastAsia": "SimHei"
100
+ }
101
+ },
102
+ "Trebuchet MS": {
103
+ "name": "Trebuchet MS",
104
+ "displayName": "Trebuchet MS",
105
+ "webFallback": "'Trebuchet MS', Tahoma, Arial, sans-serif, SimHei",
106
+ "docx": {
107
+ "ascii": "Trebuchet MS",
108
+ "eastAsia": "SimHei"
109
+ }
110
+ },
111
+ "Comic Sans MS": {
112
+ "name": "Comic Sans MS",
113
+ "displayName": "Comic Sans MS",
114
+ "webFallback": "'Comic Sans MS', 'Comic Neue', 'Marker Felt', FangSong, STFangsong, 'Zhuque Fangsong'",
115
+ "docx": {
116
+ "ascii": "Comic Sans MS",
117
+ "eastAsia": "FangSong"
118
+ }
119
+ },
120
+ "Impact": {
121
+ "name": "Impact",
122
+ "displayName": "Impact",
123
+ "webFallback": "Impact, 'Arial Black', Arial, sans-serif, SimHei",
124
+ "docx": {
125
+ "ascii": "Impact",
126
+ "eastAsia": "SimHei"
127
+ }
128
+ },
129
+ "Lucida Grande": {
130
+ "name": "Lucida Grande",
131
+ "displayName": "Lucida Grande",
132
+ "webFallback": "'Lucida Grande', Geneva, Verdana, Arial, sans-serif, STHeiti, SimHei",
133
+ "docx": {
134
+ "ascii": "Lucida Sans Unicode",
135
+ "eastAsia": "SimHei"
136
+ }
137
+ },
138
+ "Palatino Linotype": {
139
+ "name": "Palatino Linotype",
140
+ "displayName": "Palatino Linotype",
141
+ "webFallback": "'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, 'Times New Roman', serif, SimSun, STSong",
142
+ "docx": {
143
+ "ascii": "Palatino Linotype",
144
+ "eastAsia": "SimSun"
145
+ }
146
+ },
147
+ "Consolas": {
148
+ "name": "Consolas",
149
+ "displayName": "Consolas",
150
+ "webFallback": "Consolas, Monaco, 'Courier New', monospace, FangSong, STFangsong, 'Zhuque Fangsong'",
151
+ "docx": {
152
+ "ascii": "Consolas",
153
+ "eastAsia": "FangSong"
154
+ }
155
+ },
156
+ "Garamond": {
157
+ "name": "Garamond",
158
+ "displayName": "Garamond",
159
+ "webFallback": "Garamond, 'Times New Roman', Georgia, serif, SimSun, STSong",
160
+ "docx": {
161
+ "ascii": "Garamond",
162
+ "eastAsia": "SimSun"
163
+ }
164
+ },
165
+ "Helvetica Neue": {
166
+ "name": "Helvetica Neue",
167
+ "displayName": "Helvetica Neue",
168
+ "webFallback": "'Helvetica Neue', Helvetica, Arial, sans-serif, SimHei, STHeiti",
169
+ "docx": {
170
+ "ascii": "Arial",
171
+ "eastAsia": "SimHei"
172
+ }
173
+ },
174
+ "Century Gothic": {
175
+ "name": "Century Gothic",
176
+ "displayName": "Century Gothic",
177
+ "webFallback": "'Century Gothic', 'Apple Gothic', Arial, sans-serif, SimHei, STHeiti",
178
+ "docx": {
179
+ "ascii": "Century Gothic",
180
+ "eastAsia": "SimHei"
181
+ }
182
+ }
183
+ }
184
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "id": "academic",
3
+ "name": "学术论文",
4
+ "name_en": "Academic",
5
+ "description": "层级平缓的布局,适合学术论文和正式文档",
6
+ "description_en": "Gradual hierarchy layout for academic papers and formal documents",
7
+
8
+ "body": {
9
+ "fontSize": "12pt",
10
+ "lineHeight": 1.75
11
+ },
12
+
13
+ "headings": {
14
+ "h1": { "fontSize": "18pt", "spacingBefore": "0pt", "spacingAfter": "16pt" },
15
+ "h2": { "fontSize": "16pt", "spacingBefore": "16pt", "spacingAfter": "10pt" },
16
+ "h3": { "fontSize": "14pt", "spacingBefore": "14pt", "spacingAfter": "8pt" },
17
+ "h4": { "fontSize": "13pt", "spacingBefore": "12pt", "spacingAfter": "6pt" },
18
+ "h5": { "fontSize": "12pt", "spacingBefore": "10pt", "spacingAfter": "5pt" },
19
+ "h6": { "fontSize": "12pt", "spacingBefore": "8pt", "spacingAfter": "4pt" }
20
+ },
21
+
22
+ "code": {
23
+ "fontSize": "10pt"
24
+ },
25
+
26
+ "blocks": {
27
+ "paragraph": { "spacingAfter": "10pt" },
28
+ "list": { "spacingAfter": "13pt" },
29
+ "listItem": { "spacingAfter": "3pt" },
30
+ "blockquote": {
31
+ "spacingBefore": "10pt",
32
+ "spacingAfter": "10pt",
33
+ "paddingVertical": "1pt",
34
+ "paddingHorizontal": "13pt"
35
+ },
36
+ "codeBlock": { "spacingAfter": "12pt" },
37
+ "table": { "spacingAfter": "12pt" },
38
+ "horizontalRule": { "spacingBefore": "20pt", "spacingAfter": "20pt" }
39
+ }
40
+ }
@@ -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": "12pt",
10
+ "lineHeight": 1.6
11
+ },
12
+
13
+ "headings": {
14
+ "h1": { "fontSize": "22pt", "spacingBefore": "0pt", "spacingAfter": "14pt" },
15
+ "h2": { "fontSize": "18pt", "spacingBefore": "18pt", "spacingAfter": "10pt" },
16
+ "h3": { "fontSize": "16pt", "spacingBefore": "16pt", "spacingAfter": "8pt" },
17
+ "h4": { "fontSize": "14pt", "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": "10pt"
24
+ },
25
+
26
+ "blocks": {
27
+ "paragraph": { "spacingAfter": "12pt" },
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": "document",
3
+ "name": "通用文档",
4
+ "name_en": "Document",
5
+ "description": "平衡适中的布局,适合日常文档",
6
+ "description_en": "Balanced layout for everyday documents",
7
+
8
+ "body": {
9
+ "fontSize": "12pt",
10
+ "lineHeight": 1.5
11
+ },
12
+
13
+ "headings": {
14
+ "h1": { "fontSize": "22pt", "spacingBefore": "0pt", "spacingAfter": "12pt", "alignment": "center" },
15
+ "h2": { "fontSize": "18pt", "spacingBefore": "16pt", "spacingAfter": "8pt" },
16
+ "h3": { "fontSize": "16pt", "spacingBefore": "14pt", "spacingAfter": "7pt" },
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": "10pt"
24
+ },
25
+
26
+ "blocks": {
27
+ "paragraph": { "spacingAfter": "10pt" },
28
+ "list": { "spacingAfter": "13pt" },
29
+ "listItem": { "spacingAfter": "3pt" },
30
+ "blockquote": {
31
+ "spacingBefore": "10pt",
32
+ "spacingAfter": "10pt",
33
+ "paddingVertical": "1pt",
34
+ "paddingHorizontal": "13pt"
35
+ },
36
+ "codeBlock": { "spacingAfter": "12pt" },
37
+ "table": { "spacingAfter": "12pt" },
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": "12pt",
10
+ "lineHeight": 1.5
11
+ },
12
+
13
+ "headings": {
14
+ "h1": { "fontSize": "28pt", "spacingBefore": "0pt", "spacingAfter": "16pt" },
15
+ "h2": { "fontSize": "22pt", "spacingBefore": "20pt", "spacingAfter": "10pt" },
16
+ "h3": { "fontSize": "18pt", "spacingBefore": "16pt", "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": "10pt"
24
+ },
25
+
26
+ "blocks": {
27
+ "paragraph": { "spacingAfter": "10pt" },
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": "student",
3
+ "name": "学生文档",
4
+ "name_en": "Student",
5
+ "description": "大字号大行距,适合学生作文和笔记",
6
+ "description_en": "Large font and spacing for student essays and notes",
7
+
8
+ "body": {
9
+ "fontSize": "14pt",
10
+ "lineHeight": 1.8
11
+ },
12
+
13
+ "headings": {
14
+ "h1": { "fontSize": "24pt", "spacingBefore": "0pt", "spacingAfter": "16pt" },
15
+ "h2": { "fontSize": "20pt", "spacingBefore": "20pt", "spacingAfter": "12pt" },
16
+ "h3": { "fontSize": "18pt", "spacingBefore": "18pt", "spacingAfter": "10pt" },
17
+ "h4": { "fontSize": "16pt", "spacingBefore": "16pt", "spacingAfter": "8pt" },
18
+ "h5": { "fontSize": "15pt", "spacingBefore": "14pt", "spacingAfter": "7pt" },
19
+ "h6": { "fontSize": "14pt", "spacingBefore": "12pt", "spacingAfter": "6pt" }
20
+ },
21
+
22
+ "code": {
23
+ "fontSize": "12pt"
24
+ },
25
+
26
+ "blocks": {
27
+ "paragraph": { "spacingAfter": "14pt" },
28
+ "list": { "spacingAfter": "16pt" },
29
+ "listItem": { "spacingAfter": "6pt" },
30
+ "blockquote": {
31
+ "spacingBefore": "14pt",
32
+ "spacingAfter": "14pt",
33
+ "paddingVertical": "4pt",
34
+ "paddingHorizontal": "18pt"
35
+ },
36
+ "codeBlock": { "spacingAfter": "16pt" },
37
+ "table": { "spacingAfter": "16pt" },
38
+ "horizontalRule": { "spacingBefore": "28pt", "spacingAfter": "28pt" }
39
+ }
40
+ }
@@ -0,0 +1,40 @@
1
+ {
2
+ "id": "technical",
3
+ "name": "技术文档",
4
+ "name_en": "Technical",
5
+ "description": "紧凑高效的布局,适合技术文档和API文档",
6
+ "description_en": "Compact and efficient layout for technical and API documentation",
7
+
8
+ "body": {
9
+ "fontSize": "11pt",
10
+ "lineHeight": 1.4
11
+ },
12
+
13
+ "headings": {
14
+ "h1": { "fontSize": "18pt", "spacingBefore": "0pt", "spacingAfter": "10pt" },
15
+ "h2": { "fontSize": "15pt", "spacingBefore": "14pt", "spacingAfter": "7pt" },
16
+ "h3": { "fontSize": "13pt", "spacingBefore": "12pt", "spacingAfter": "6pt" },
17
+ "h4": { "fontSize": "12pt", "spacingBefore": "10pt", "spacingAfter": "5pt" },
18
+ "h5": { "fontSize": "11pt", "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" },
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,24 @@
1
+ {
2
+ "id": "academic",
3
+ "name": "学术论文",
4
+ "name_en": "Academic",
5
+ "description": "宋体正文配黑体标题,中文学术规范",
6
+ "description_en": "Song body with Hei headings, Chinese academic standard",
7
+ "author": "Markdown Viewer Extension",
8
+ "version": "1.0.0",
9
+ "fontScheme": {
10
+ "body": {
11
+ "fontFamily": "SimSun"
12
+ },
13
+ "headings": {
14
+ "fontFamily": "SimHei"
15
+ },
16
+ "code": {
17
+ "fontFamily": "Monaco"
18
+ }
19
+ },
20
+ "layoutScheme": "academic",
21
+ "colorScheme": "neutral",
22
+ "tableStyle": "academic",
23
+ "codeTheme": "light-clean"
24
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "id": "business",
3
+ "name": "商务报告",
4
+ "name_en": "Business",
5
+ "description": "Calibri 字体,现代商务风格,层次清晰",
6
+ "description_en": "Calibri font with modern business style and clear hierarchy",
7
+ "author": "Markdown Viewer Extension",
8
+ "version": "1.0.0",
9
+ "fontScheme": {
10
+ "body": {
11
+ "fontFamily": "Arial"
12
+ },
13
+ "headings": {},
14
+ "code": {
15
+ "fontFamily": "Monaco"
16
+ }
17
+ },
18
+ "layoutScheme": "document",
19
+ "colorScheme": "neutral",
20
+ "tableStyle": "professional",
21
+ "codeTheme": "business-contrast"
22
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "id": "candy",
3
+ "name": "糖果甜心",
4
+ "name_en": "Candy",
5
+ "description": "糖果甜心,甜美可爱风格",
6
+ "description_en": "Sweet and adorable candy style",
7
+ "author": "Theme System",
8
+ "version": "1.0.0",
9
+ "fontScheme": {
10
+ "body": {
11
+ "fontFamily": "Trebuchet MS"
12
+ },
13
+ "headings": {},
14
+ "code": {
15
+ "fontFamily": "Consolas"
16
+ }
17
+ },
18
+ "layoutScheme": "student",
19
+ "colorScheme": "candy",
20
+ "tableStyle": "zebra",
21
+ "codeTheme": "colorful",
22
+ "diagramStyle": "handDrawn"
23
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "id": "century",
3
+ "name": "演示文稿",
4
+ "name_en": "Presentation",
5
+ "description": "Trebuchet MS 字体,简洁的演示风格,标题突出",
6
+ "description_en": "Trebuchet MS font with clean presentation style, prominent headings",
7
+ "author": "Markdown Viewer Extension",
8
+ "version": "1.0.0",
9
+ "fontScheme": {
10
+ "body": {
11
+ "fontFamily": "Century Gothic"
12
+ },
13
+ "headings": {},
14
+ "code": {
15
+ "fontFamily": "Monaco"
16
+ }
17
+ },
18
+ "layoutScheme": "magazine",
19
+ "colorScheme": "cool",
20
+ "tableStyle": "minimal-gray",
21
+ "codeTheme": "cool-modern"
22
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "id": "coral",
3
+ "name": "珊瑚活力",
4
+ "name_en": "Coral Vibrant",
5
+ "description": "温暖橙粉色系,友好亲和的活力风格",
6
+ "description_en": "Warm coral-pink for friendly and vibrant style",
7
+ "author": "Theme System",
8
+ "version": "1.0.0",
9
+ "fontScheme": {
10
+ "body": {
11
+ "fontFamily": "Verdana"
12
+ },
13
+ "headings": {},
14
+ "code": {
15
+ "fontFamily": "Consolas"
16
+ }
17
+ },
18
+ "layoutScheme": "book",
19
+ "colorScheme": "coral",
20
+ "tableStyle": "minimal-gray",
21
+ "codeTheme": "colorful"
22
+ }
@@ -0,0 +1,22 @@
1
+ {
2
+ "id": "default",
3
+ "name": "标准文档",
4
+ "name_en": "Standard",
5
+ "description": "Times New Roman 字体,适合正式文档和论文",
6
+ "description_en": "Times New Roman font for formal documents and papers",
7
+ "author": "Markdown Viewer Extension",
8
+ "version": "1.0.0",
9
+ "fontScheme": {
10
+ "body": {
11
+ "fontFamily": "Times New Roman"
12
+ },
13
+ "headings": {},
14
+ "code": {
15
+ "fontFamily": "Monaco"
16
+ }
17
+ },
18
+ "layoutScheme": "document",
19
+ "colorScheme": "neutral",
20
+ "tableStyle": "grid",
21
+ "codeTheme": "light-clean"
22
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "id": "dinosaur",
3
+ "name": "恐龙探险",
4
+ "name_en": "Dinosaur",
5
+ "description": "绿橙探险,活力恐龙风格",
6
+ "description_en": "Green-orange adventurous dinosaur style",
7
+ "author": "Theme System",
8
+ "version": "1.0.0",
9
+ "fontScheme": {
10
+ "body": {
11
+ "fontFamily": "Arial"
12
+ },
13
+ "headings": {},
14
+ "code": {
15
+ "fontFamily": "Consolas"
16
+ }
17
+ },
18
+ "layoutScheme": "student",
19
+ "colorScheme": "dino",
20
+ "tableStyle": "grid",
21
+ "codeTheme": "colorful",
22
+ "diagramStyle": "handDrawn"
23
+ }