md2gost 1.3.0 → 1.3.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/CHANGELOG.md +219 -0
- package/LICENSE +21 -21
- package/assets/run.ps1 +61 -61
- package/assets/styles.xml +1140 -1140
- package/dist/{index.cjs → index.js} +13 -10
- package/dist/{index.cjs.map → index.js.map} +2 -2
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +223 -227
package/package.json
CHANGED
|
@@ -1,227 +1,223 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "md2gost",
|
|
3
|
-
"displayName": "md2gost",
|
|
4
|
-
"description": "Converts markdown to docx format, trying to comply with GOST standards",
|
|
5
|
-
"icon": "imgs/icon.png",
|
|
6
|
-
"version": "1.3.
|
|
7
|
-
"publisher": "MixelTe",
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
"
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
"
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
"
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
"
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
"
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
{
|
|
83
|
-
"when": "resourceFilename =~ /\\.g\\.md$/",
|
|
84
|
-
"command": "md2gost.
|
|
85
|
-
"
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
"
|
|
123
|
-
"
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
"
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
"
|
|
138
|
-
"
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
"
|
|
158
|
-
"
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
"
|
|
186
|
-
"
|
|
187
|
-
"
|
|
188
|
-
"
|
|
189
|
-
"watch
|
|
190
|
-
"
|
|
191
|
-
"
|
|
192
|
-
"
|
|
193
|
-
"
|
|
194
|
-
"
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
"
|
|
198
|
-
"
|
|
199
|
-
"
|
|
200
|
-
"
|
|
201
|
-
"
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
"@
|
|
205
|
-
"
|
|
206
|
-
"
|
|
207
|
-
"
|
|
208
|
-
"
|
|
209
|
-
"
|
|
210
|
-
"
|
|
211
|
-
"
|
|
212
|
-
"
|
|
213
|
-
"
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
"
|
|
217
|
-
"
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
"
|
|
221
|
-
"
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
"pizzip": "^3.2.0",
|
|
225
|
-
"prismjs": "^1.30.0"
|
|
226
|
-
}
|
|
227
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "md2gost",
|
|
3
|
+
"displayName": "md2gost",
|
|
4
|
+
"description": "Converts markdown to docx format, trying to comply with GOST standards",
|
|
5
|
+
"icon": "imgs/icon.png",
|
|
6
|
+
"version": "1.3.1",
|
|
7
|
+
"publisher": "MixelTe",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"repository": {
|
|
10
|
+
"url": "https://github.com/MixelTe/md2gost",
|
|
11
|
+
"type": "git"
|
|
12
|
+
},
|
|
13
|
+
"engines": {
|
|
14
|
+
"vscode": "^1.101.0"
|
|
15
|
+
},
|
|
16
|
+
"categories": [
|
|
17
|
+
"Formatters",
|
|
18
|
+
"Other"
|
|
19
|
+
],
|
|
20
|
+
"activationEvents": [
|
|
21
|
+
"onLanguage:markdown"
|
|
22
|
+
],
|
|
23
|
+
"main": "./dist/extension.js",
|
|
24
|
+
"bin": {
|
|
25
|
+
"md2gost": "./dist/cli.js"
|
|
26
|
+
},
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"import": "./dist/index.mjs",
|
|
30
|
+
"require": "./dist/index.js",
|
|
31
|
+
"types": "./dist/index.d.ts"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"contributes": {
|
|
35
|
+
"markdown.markdownItPlugins": true,
|
|
36
|
+
"commands": [
|
|
37
|
+
{
|
|
38
|
+
"command": "md2gost.whats_new",
|
|
39
|
+
"title": "md2gost: Show update notes"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"command": "md2gost.readme",
|
|
43
|
+
"title": "md2gost: Open README",
|
|
44
|
+
"icon": {
|
|
45
|
+
"dark": "imgs/readme_white.svg",
|
|
46
|
+
"light": "imgs/readme.svg"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"command": "md2gost.render_pdf",
|
|
51
|
+
"title": "md2gost: Render current file to pdf",
|
|
52
|
+
"icon": {
|
|
53
|
+
"dark": "imgs/ghost_white.svg",
|
|
54
|
+
"light": "imgs/ghost.svg"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
"command": "md2gost.render_docx",
|
|
59
|
+
"title": "md2gost: Render current file to docx only",
|
|
60
|
+
"icon": {
|
|
61
|
+
"dark": "imgs/ghost_small_white.svg",
|
|
62
|
+
"light": "imgs/ghost_small.svg"
|
|
63
|
+
}
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"command": "md2gost.render_docx_fast",
|
|
67
|
+
"title": "md2gost: Render current file to docx without postprocessing",
|
|
68
|
+
"icon": {
|
|
69
|
+
"dark": "imgs/ghost_smallest_white.svg",
|
|
70
|
+
"light": "imgs/ghost_smallest.svg"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
"menus": {
|
|
75
|
+
"editor/title": [
|
|
76
|
+
{
|
|
77
|
+
"when": "resourceFilename =~ /\\.g\\.md$/",
|
|
78
|
+
"command": "md2gost.render_docx",
|
|
79
|
+
"alt": "md2gost.render_docx_fast",
|
|
80
|
+
"group": "navigation"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"when": "resourceFilename =~ /\\.g\\.md$/",
|
|
84
|
+
"command": "md2gost.render_pdf",
|
|
85
|
+
"group": "navigation"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"when": "resourceFilename =~ /\\.g\\.md$/",
|
|
89
|
+
"command": "md2gost.readme",
|
|
90
|
+
"group": "navigation"
|
|
91
|
+
}
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
"grammars": [
|
|
95
|
+
{
|
|
96
|
+
"scopeName": "markdown.custom.injection",
|
|
97
|
+
"path": "./assets/grammars.json",
|
|
98
|
+
"injectTo": [
|
|
99
|
+
"text.html.markdown"
|
|
100
|
+
],
|
|
101
|
+
"injectionSelector": "L:text.html.markdown"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"markdown.previewStyles": [
|
|
105
|
+
"./assets/markdown.css"
|
|
106
|
+
],
|
|
107
|
+
"configuration": {
|
|
108
|
+
"title": "md2gost",
|
|
109
|
+
"properties": {
|
|
110
|
+
"md2gost.tables.editor.enabled": {
|
|
111
|
+
"type": "boolean",
|
|
112
|
+
"default": true,
|
|
113
|
+
"description": "Отображать кнопку для открытия визуального редактора таблиц."
|
|
114
|
+
},
|
|
115
|
+
"md2gost.tables.borderStyle": {
|
|
116
|
+
"type": "string",
|
|
117
|
+
"enum": [
|
|
118
|
+
"enclosed",
|
|
119
|
+
"none",
|
|
120
|
+
"preserve"
|
|
121
|
+
],
|
|
122
|
+
"default": "preserve",
|
|
123
|
+
"description": "Стиль внешних границ таблиц: \"enclosed\" (добавлять «|» по краям), \"none\" (убирать границы), \"preserve\" (не изменять)."
|
|
124
|
+
},
|
|
125
|
+
"md2gost.tables.alwaysAddLeftColon": {
|
|
126
|
+
"type": "boolean",
|
|
127
|
+
"default": false,
|
|
128
|
+
"description": "Определяет, нужно ли явно добавлять двоеточие для выравнивания по левому краю (например, ':---' вместо '---')."
|
|
129
|
+
},
|
|
130
|
+
"md2gost.tables.compact": {
|
|
131
|
+
"type": "boolean",
|
|
132
|
+
"default": false,
|
|
133
|
+
"description": "Ячейки не будут дополняться пробелами для визуального выравнивания столбцов."
|
|
134
|
+
},
|
|
135
|
+
"md2gost.ui.inlayHints": {
|
|
136
|
+
"type": "boolean",
|
|
137
|
+
"default": true,
|
|
138
|
+
"description": "Отображать встроенные подсказки в тексте (например, «Рисунок # –»)."
|
|
139
|
+
},
|
|
140
|
+
"md2gost.ui.enhancedHighlighting": {
|
|
141
|
+
"type": "boolean",
|
|
142
|
+
"default": true,
|
|
143
|
+
"description": "Использовать дополненную подсветку Markdown (требуется перезагрузка окна)."
|
|
144
|
+
},
|
|
145
|
+
"md2gost.ui.enhancedPreview": {
|
|
146
|
+
"type": "boolean",
|
|
147
|
+
"default": true,
|
|
148
|
+
"description": "Включить улучшенный предпросмотр Markdown с поддержкой синтаксиса md2gost"
|
|
149
|
+
},
|
|
150
|
+
"md2gost.formatter.suppressDefaultPrompt": {
|
|
151
|
+
"type": "boolean",
|
|
152
|
+
"default": false,
|
|
153
|
+
"description": "Отключает предложение использовать md2gost в качестве форматировщика по умолчанию."
|
|
154
|
+
},
|
|
155
|
+
"md2gost.formatter.replaceEmDash": {
|
|
156
|
+
"type": "boolean",
|
|
157
|
+
"default": true,
|
|
158
|
+
"description": "Заменять Em dash (—) на En dash (–)"
|
|
159
|
+
},
|
|
160
|
+
"md2gost.completion.tableSeparator": {
|
|
161
|
+
"type": "boolean",
|
|
162
|
+
"default": true,
|
|
163
|
+
"description": "Автоматически предлагать строку-разделитель (например, '|---|') для новой таблицы, если предыдущая строка содержит символы «|»."
|
|
164
|
+
},
|
|
165
|
+
"md2gost.completion.listItem": {
|
|
166
|
+
"type": "boolean",
|
|
167
|
+
"default": true,
|
|
168
|
+
"description": "Автоматически продолжать нумерованные и маркированные списки на новой строке."
|
|
169
|
+
},
|
|
170
|
+
"md2gost.render.removeIntermediateDocx": {
|
|
171
|
+
"type": "boolean",
|
|
172
|
+
"default": false,
|
|
173
|
+
"description": "Удалять промежуточный файл DOCX после успешной конвертации в PDF."
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
"scripts": {
|
|
179
|
+
"vscode:prepublish": "npm run build:ext",
|
|
180
|
+
"compile": "npm run check-types && npm run lint && node esbuild.js",
|
|
181
|
+
"watch": "npm-run-all -p watch:*",
|
|
182
|
+
"watch:esbuild": "node esbuild.js --watch",
|
|
183
|
+
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
|
|
184
|
+
"compile-types": "dts-bundle-generator -o dist/index.d.ts src/index.ts --no-check",
|
|
185
|
+
"compile-tests": "tsc -p . --outDir out",
|
|
186
|
+
"build:ext": "node esbuild.js --production",
|
|
187
|
+
"build:npm": "npm run compile-types && node esbuild.js --npm-package",
|
|
188
|
+
"build:npm-readme": "node md-patch.js README.md README-NPM.patch.md README-NPM.md MixelTe md2gost master",
|
|
189
|
+
"watch-tests": "tsc -p . -w --outDir out",
|
|
190
|
+
"pretest": "npm run compile-tests && npm run compile && npm run lint",
|
|
191
|
+
"check-types": "tsc --noEmit",
|
|
192
|
+
"lint": "eslint src",
|
|
193
|
+
"test": "vscode-test",
|
|
194
|
+
"test:artifacts": "node check-package-files.js"
|
|
195
|
+
},
|
|
196
|
+
"devDependencies": {
|
|
197
|
+
"@types/markdown-it": "^14.1.2",
|
|
198
|
+
"@types/mocha": "^10.0.10",
|
|
199
|
+
"@types/node": "22.x",
|
|
200
|
+
"@types/prismjs": "^1.26.6",
|
|
201
|
+
"@types/vscode": "^1.101.0",
|
|
202
|
+
"@vscode/test-cli": "^0.0.12",
|
|
203
|
+
"@vscode/test-electron": "^2.5.2",
|
|
204
|
+
"@vscode/vsce": "^3.9.2",
|
|
205
|
+
"dts-bundle-generator": "^9.5.1",
|
|
206
|
+
"esbuild": "^0.27.2",
|
|
207
|
+
"esbuild-plugin-copy": "^2.1.1",
|
|
208
|
+
"eslint": "^9.39.2",
|
|
209
|
+
"npm-run-all": "^4.1.5",
|
|
210
|
+
"tar": "^7.5.19",
|
|
211
|
+
"typescript": "^5.9.3",
|
|
212
|
+
"typescript-eslint": "^8.54.0",
|
|
213
|
+
"yauzl": "^3.4.0"
|
|
214
|
+
},
|
|
215
|
+
"dependencies": {
|
|
216
|
+
"commander": "^15.0.0",
|
|
217
|
+
"docx": "^9.5.1",
|
|
218
|
+
"image-size": "^2.0.2",
|
|
219
|
+
"pdf-lib": "^1.17.1",
|
|
220
|
+
"pizzip": "^3.2.0",
|
|
221
|
+
"prismjs": "^1.30.0"
|
|
222
|
+
}
|
|
223
|
+
}
|