forked from marp-team/marp-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
341 lines (341 loc) · 11.2 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
{
"name": "marp-vscode-extended",
"displayName": "Marp for VS Code (Extended)",
"publisher": "MiguelDomingues",
"version": "2.6.0",
"description": "Create slide deck written in Marp Markdown on VS Code. Extended with Markdown It Plugins. Based on https://github.com/marp-team/marp-vscode",
"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"
},
{
"name": "Miguel Domingues",
"url": "https://github.com/MiguelDomingues"
}
],
"sponsor": {
"url": "https://github.com/sponsors/yhatt"
},
"repository": {
"type": "git",
"url": "https://github.com/MiguelDomingues/marp-vscode"
},
"engines": {
"vscode": "^1.72.0"
},
"main": "./lib/extension.js",
"browser": "./dist/extension.js",
"icon": "images/icon.png",
"galleryBanner": {
"color": "#d9edf8",
"theme": "light"
},
"activationEvents": [
"onLanguage:markdown",
"onCommand:markdown.marp.export",
"onCommand:markdown.marp.newMarpMarkdown",
"onCommand:markdown.marp.showQuickPick",
"onCommand:markdown.marp.toggleMarpFeature"
],
"capabilities": {
"untrustedWorkspaces": {
"supported": "limited",
"description": "Workspace trust is required for exporting slide deck, and using themes configured in the workspace.",
"restrictedConfigurations": [
"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 (Extended)",
"command": "markdown.marp.export",
"title": "Export Slide Deck..."
},
{
"category": "Marp (Extended)",
"command": "markdown.marp.newMarpMarkdown",
"title": "New Untitled Marp Markdown For Slide Deck",
"shortTitle": "Marp Markdown"
},
{
"category": "Marp (Extended)",
"command": "markdown.marp.showQuickPick",
"title": "Show Quick Pick Of Marp Commands...",
"icon": {
"dark": "./images/icon-dark.svg",
"light": "./images/icon-light.svg"
}
},
{
"category": "Marp (Extended)",
"command": "markdown.marp.toggleMarpFeature",
"title": "Toggle Marp Feature For Current Markdown"
}
],
"configuration": {
"type": "object",
"title": "Marp for VS Code (Extended)",
"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.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."
},
"markdown.marp.enableHtml": {
"type": "boolean",
"default": false,
"description": "Enables all HTML elements in Marp Markdown. This setting is working only in the trusted workspace."
},
"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,
"markdownDescription": "_[Experimental]_ 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."
},
"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.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 --ext .js,.ts --report-unused-disable-directives --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.21.4",
"@marp-team/marp-core": "^3.6.0",
"@types/color-string": "^1.5.2",
"@types/express": "^4.17.17",
"@types/jest": "^29.5.0",
"@types/lodash.debounce": "^4.0.7",
"@types/markdown-it": "^12.2.3",
"@types/vscode": "~1.72.0",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"@vscode/test-web": "^0.0.42",
"@vscode/vsce": "^2.19.0",
"abort-controller": "^3.0.0",
"color-string": "^1.9.1",
"dedent": "^0.7.0",
"esbuild": "^0.17.16",
"esbuild-loader": "^3.0.1",
"eslint": "^8.38.0",
"eslint-config-prettier": "^8.8.0",
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"express": "^4.18.2",
"fetch-ponyfill": "^7.1.0",
"jest": "^29.5.0",
"jest-environment-jsdom": "^29.5.0",
"jest-junit": "^16.0.0",
"lodash.debounce": "^4.0.8",
"markdown-it-attrs": "^4.1.4",
"markdown-it": "^13.0.1",
"nanoid": "^4.0.2",
"npm-check-updates": "^16.10.8",
"npm-run-all": "^4.1.5",
"os-browserify": "^0.3.0",
"path-browserify": "^1.0.1",
"portfinder": "1.0.32",
"prettier": "^2.8.7",
"process": "^0.11.10",
"rehype-parse": "^8.0.4",
"remark-math": "^5.1.1",
"remark-parse": "^10.0.1",
"stylelint": "^15.5.0",
"stylelint-config-standard": "^33.0.0",
"ts-jest": "^29.1.0",
"tslib": "^2.5.0",
"typed-emitter": "^2.1.0",
"typescript": "^5.0.4",
"unified": "^10.1.2",
"unist-util-visit": "^4.1.2",
"util": "^0.12.5",
"vscode-uri": "^3.0.7",
"webpack": "^5.79.0",
"webpack-cli": "^5.0.1",
"yaml": "^2.2.1"
},
"dependencies": {
"@marp-team/marp-cli": "^2.5.0"
}
}