-
-
Notifications
You must be signed in to change notification settings - Fork 80
/
Copy pathpackage.json
383 lines (383 loc) · 12.9 KB
/
package.json
1
2
3
4
5
6
7
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
84
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
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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
{
"name": "marp-vscode",
"displayName": "Marp for VS Code",
"publisher": "marp-team",
"version": "3.0.0",
"description": "Create slide deck written in Marp Markdown on VS Code",
"categories": [
"Other"
],
"keywords": [
"marp",
"markdown",
"slide",
"deck",
"presentation"
],
"license": "MIT",
"author": {
"name": "Marp team",
"url": "https://github.com/marp-team"
},
"contributors": [
{
"name": "Yuki Hattori",
"url": "https://github.com/yhatt"
}
],
"sponsor": {
"url": "https://github.com/sponsors/yhatt"
},
"repository": {
"type": "git",
"url": "https://github.com/marp-team/marp-vscode"
},
"engines": {
"vscode": "^1.86.0"
},
"main": "./lib/extension.js",
"browser": "./dist/extension.js",
"icon": "images/icon.png",
"galleryBanner": {
"color": "#d9edf8",
"theme": "light"
},
"activationEvents": [
"onLanguage:markdown"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "Workspace trust is required for exporting slide deck, and using themes configured in the workspace.",
"restrictedConfigurations": [
"markdown.marp.html",
"markdown.marp.enableHtml",
"markdown.marp.themes"
]
},
"virtualWorkspaces": true
},
"contributes": {
"colors": [
{
"id": "marp.directiveKeyForeground",
"description": "Forground decoration color for the key of Marp directive",
"defaults": {
"dark": "#67b8e3ff",
"light": "#0288d1ff",
"highContrast": "#67b8e3ff"
}
}
],
"commands": [
{
"category": "Marp",
"command": "markdown.marp.export",
"title": "Export Slide Deck..."
},
{
"category": "Marp",
"command": "markdown.marp.newMarpMarkdown",
"title": "New Untitled Marp Markdown For Slide Deck",
"shortTitle": "Marp Markdown"
},
{
"category": "Marp",
"command": "markdown.marp.showQuickPick",
"title": "Show Quick Pick Of Marp Commands...",
"icon": "$(marp-brand)"
},
{
"category": "Marp",
"command": "markdown.marp.toggleMarpFeature",
"title": "Toggle Marp Feature For Current Markdown"
}
],
"configuration": {
"type": "object",
"title": "Marp for VS Code",
"properties": {
"markdown.marp.breaks": {
"type": "string",
"enum": [
"off",
"on",
"inherit"
],
"default": "on",
"description": "Sets how line-breaks are rendered in Marp Markdown. It can set separately because the default setting of Marp ecosystem is different from VS Code.",
"markdownEnumDescriptions": [
"Ignore line-breaks in rendered Marp Markdown preview.",
"Show line-breaks in rendered Marp Markdown preview. It is the default setting of Marp ecosystem.",
"Use inherited setting from `#markdown.preview.breaks#`."
]
},
"markdown.marp.browser": {
"type": "string",
"enum": [
"auto",
"chrome",
"edge",
"firefox"
],
"default": "auto",
"description": "Controls the installed browser using internally to export PDF, PPTX, and the image.",
"enumDescriptions": [
"Automatically detect Chrome, Chromium, Edge, or Firefox.",
"Use Google Chrome.",
"Use Microsoft Edge.",
"Use Mozilla Firefox."
]
},
"markdown.marp.browserPath": {
"type": "string",
"default": "",
"markdownDescription": "Configure the custom path for the installed browser using internally to export PDF, PPTX, and the image. The kind of browser is determined by `#markdown.marp.browser#`. When set to empty, Marp will find out a suitable installed browser automatically."
},
"markdown.marp.html": {
"type": "string",
"enum": [
"off",
"default",
"all"
],
"markdownEnumDescriptions": [
"Disable all HTML elements, including originally allowed HTML elements by Marp.",
"Enable only selectively enabled HTML elements by Marp. _([See the list of HTML elements](https://github.com/marp-team/marp-core/blob/main/src/html/allowlist.ts))_",
"Enable all HTML elements. This setting may become the slide rendering insecure."
],
"default": "default",
"description": "Sets which HTML elements within Marp Markdown are enabled in rendered slides. If the workspace is not trusted, this setting treats as always \"off\"."
},
"markdown.marp.exportType": {
"type": "string",
"enum": [
"html",
"pdf",
"pptx",
"png",
"jpeg"
],
"default": "pdf",
"description": "Sets default export type.",
"enumDescriptions": [
"HTML slide deck",
"PDF slide deck",
"PowerPoint document",
"PNG image (first slide only)",
"JPEG image (first slide only)"
]
},
"markdown.marp.mathTypesetting": {
"type": "string",
"enum": [
"off",
"mathjax",
"katex"
],
"default": "mathjax",
"markdownDescription": "Controls math syntax and the default library for rendering math in [Marp Core](https://github.com/marp-team/marp-core). A using library can override by math global directive in Markdown. Please note that math rendering in Marp Markdown is not following the setting in `#markdown.math.enabled#`.",
"markdownEnumDescriptions": [
"Disable math syntax and math global directive.",
"Use MathJax (https://www.mathjax.org/). It is the default library in Marp Core v3.",
"Use KaTeX (https://katex.org/)."
]
},
"markdown.marp.outlineExtension": {
"type": "boolean",
"default": true,
"description": "Enables the outline extension for Marp Markdown. If enabled, VS Code's outline view will reflect slide splitters, and you can fold regions of the slide content in the editor."
},
"markdown.marp.pdf.noteAnnotations": {
"type": "boolean",
"default": false,
"markdownDescription": "Adds [presenter notes](https://marpit.marp.app/usage?id=presenter-notes) to exported PDF as note annotations."
},
"markdown.marp.pdf.outlines": {
"type": "string",
"enum": [
"off",
"pages",
"headings",
"both"
],
"default": "off",
"description": "Adds outlines (bookmarks) to exported PDF. It is useful for navigation in PDF viewer.",
"enumDescriptions": [
"Disable outlines.",
"Add outlines based on each slide page.",
"Add outlines based on each Markdown heading.",
"Add outlines based on both slide pages and Markdown headings."
]
},
"markdown.marp.strictPathResolutionDuringExport": {
"type": "boolean",
"default": false,
"description": "Enables strict path resolution during export. If enabled, the export command tries to resolve relative paths from VS Code workspace that a Markdown file belongs. If disabled, or the Markdown does not belong to any workspace, the export command resolves paths based on the local file system.",
"tags": [
"experimental"
]
},
"markdown.marp.themes": {
"type": "array",
"default": [],
"markdownDescription": "A list of URLs or local paths to additional [theme CSS](https://marpit.marp.app/theme-css) for Marp core and Marpit framework. The rule for paths is following `#markdown.styles#`.",
"items": {
"type": "string"
}
},
"markdown.marp.enableHtml": {
"type": "boolean",
"default": false,
"description": "Enables all HTML elements in Marp Markdown. This setting is working only in the trusted workspace.",
"deprecationMessage": "The setting \"markdown.marp.enableHtml\" is deprecated. Please use \"markdown.marp.html\" instead."
},
"markdown.marp.chromePath": {
"type": "string",
"default": "",
"description": "Sets the custom path for Chrome or Chromium-based browser to export PDF, PPTX, and image. If it's empty, Marp will find out the installed Google Chrome / Chromium / Microsoft Edge.",
"deprecationMessage": "The setting \"markdown.marp.chromePath\" is deprecated. Please use \"markdown.marp.browserPath\" instead."
}
}
},
"icons": {
"marp-brand": {
"description": "Marp brand",
"default": {
"fontPath": "./images/icon.woff",
"fontCharacter": "\\e000"
}
}
},
"markdown.markdownItPlugins": true,
"markdown.previewScripts": [
"./preview/preview.js"
],
"markdown.previewStyles": [
"./marp-vscode.css"
],
"menus": {
"editor/title": [
{
"command": "markdown.marp.showQuickPick",
"group": "navigation",
"when": "editorLangId == markdown"
}
],
"file/newFile": [
{
"command": "markdown.marp.newMarpMarkdown",
"group": "file"
}
]
}
},
"private": true,
"vsce": {
"yarn": false
},
"prettier": {
"semi": false,
"singleQuote": true
},
"stylelint": {
"extends": [
"stylelint-config-standard"
],
"rules": {
"selector-id-pattern": null,
"selector-type-no-unknown": [
true,
{
"ignoreTypes": [
"foreignobject"
]
}
]
}
},
"scripts": {
"build": "webpack --env production",
"build:node": "webpack --env production --env target=node",
"build:preview": "webpack --env production --env target=preview",
"build:web": "webpack --env production --env target=web",
"check:audit": "npm audit",
"check:format": "npm run -s format -- -c",
"check:ts": "tsc --noEmit",
"dev:web": "vscode-test-web --extensionDevelopmentPath=.",
"format": "prettier \"**/*.{css,js,json,md,scss,ts,yaml,yml}\"",
"format:write": "npm run -s format -- --write",
"lint:css": "stylelint \"./*.{css,scss}\"",
"lint:js": "eslint --cache",
"package": "vsce package",
"preversion": "run-p check:* lint:* test:*:coverage",
"test:unit": "jest",
"test:unit:coverage": "jest --coverage",
"version": "curl https://raw.githubusercontent.com/marp-team/actions/v1/lib/scripts/version.js | node && git add -A CHANGELOG.md",
"vsce:publish": "vsce publish",
"vscode:prepublish": "run-s preversion build",
"watch": "webpack --watch",
"watch:node": "webpack --watch --env target=node,preview",
"watch:web": "webpack --watch --env target=web,preview"
},
"devDependencies": {
"@babel/preset-env": "^7.26.0",
"@eslint/js": "^9.17.0",
"@marp-team/marp-core": "^4.0.1",
"@types/color-string": "^1.5.5",
"@types/express": "^4.17.21",
"@types/jest": "^29.5.14",
"@types/lodash.debounce": "^4.0.9",
"@types/markdown-it": "^14.1.2",
"@types/vscode": "~1.86.0",
"@vscode/test-web": "^0.0.65",
"@vscode/vsce": "^3.2.1",
"abort-controller": "^3.0.0",
"color-string": "^1.9.1",
"dedent": "^1.5.3",
"esbuild": "^0.24.2",
"esbuild-loader": "^4.2.2",
"eslint": "^9.17.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.10.0",
"eslint-plugin-unicorn": "^56.0.1",
"express": "^4.21.2",
"fetch-ponyfill": "^7.1.0",
"globals": "^15.14.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"jest-junit": "^16.0.0",
"lodash.debounce": "^4.0.8",
"markdown-it": "^14.1.0",
"nanoid": "^5.0.9",
"npm-check-updates": "^17.1.12",
"npm-run-all2": "^7.0.2",
"os-browserify": "^0.3.0",
"path-browserify": "^1.0.1",
"portfinder": "1.0.32",
"prettier": "^3.4.2",
"process": "^0.11.10",
"rehype-parse": "^9.0.1",
"remark-math": "^6.0.0",
"remark-parse": "^11.0.0",
"stylelint": "^16.12.0",
"stylelint-config-standard": "^36.0.1",
"ts-jest": "^29.2.5",
"tslib": "^2.8.1",
"typed-emitter": "^2.1.0",
"typescript": "^5.7.2",
"typescript-eslint": "^8.18.2",
"unified": "^11.0.5",
"unist-util-visit": "^5.0.0",
"util": "^0.12.5",
"vscode-uri": "^3.0.8",
"webpack": "^5.97.1",
"webpack-cli": "^6.0.1",
"yaml": "^2.6.1"
},
"dependencies": {
"@marp-team/marp-cli": "^4.0.4"
}
}