forked from shd101wyy/vscode-markdown-preview-enhanced
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
576 lines (576 loc) · 22.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
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
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
{
"name": "markdown-preview-enhanced-with-litvis",
"displayName": "%displayName%",
"version": "0.31.0",
"description": "%description%",
"categories": [
"Other"
],
"keywords": [
"markdown"
],
"bugs": {
"url": "https://github.com/gicentre/vscode-markdown-preview-enhanced-with-litvis/issues"
},
"repository": "https://github.com/gicentre/vscode-markdown-preview-enhanced-with-litvis.git",
"license": "BSD-3, NCSA",
"contributors": [
"shd101wyy",
"kachkaev",
"gabyx"
],
"publisher": "gicentre",
"main": "./out/src/extension",
"scripts": {
"check": "npm run check:eslint && npm run check:prettier && npm run check:tsc && npm run check:tslint",
"check:eslint": "eslint \"**/*\"",
"check:prettier": "prettier --check \"**/*.*\"",
"check:tsc": "tsc --project . --noEmit",
"check:tslint": "tslint --project .",
"compile": "tsc -p ./",
"fix": "npm run fix:eslint && npm run fix:tslint && npm run fix:prettier",
"fix:eslint": "eslint --fix \"**/*\"",
"fix:prettier": "prettier --write \"**/*.*\"",
"fix:tslint": "tslint --fix --project .",
"test": "npm run compile",
"vscode:prepublish": "npm run compile",
"watch": "tsc -watch -p ./"
},
"contributes": {
"commands": [
{
"command": "markdown-preview-enhanced-with-litvis.openPreviewToTheSide",
"title": "%markdown-preview-enhanced-with-litvis.openPreviewToTheSide.title%",
"category": "Markdown",
"icon": {
"light": "./media/preview-right-light.svg",
"dark": "./media/preview-right-dark.svg"
}
},
{
"command": "markdown-preview-enhanced-with-litvis.openPreview",
"title": "%markdown-preview-enhanced-with-litvis.openPreview.title%",
"category": "Markdown",
"icon": {
"light": "./media/preview-right-light.svg",
"dark": "./media/preview-right-dark.svg"
}
},
{
"command": "markdown-preview-enhanced-with-litvis.toggleScrollSync",
"title": "%markdown-preview-enhanced-with-litvis.toggleScrollSync.title%"
},
{
"command": "markdown-preview-enhanced-with-litvis.toggleLiveUpdate",
"title": "%markdown-preview-enhanced-with-litvis.toggleLiveUpdate.title%"
},
{
"command": "markdown-preview-enhanced-with-litvis.toggleBreakOnSingleNewLine",
"title": "%markdown-preview-enhanced-with-litvis.toggleBreakOnSingleNewLine.title%"
},
{
"command": "markdown-preview-enhanced-with-litvis.openImageHelper",
"title": "%markdown-preview-enhanced-with-litvis.openImageHelper.title%"
},
{
"command": "markdown-preview-enhanced-with-litvis.runAllCodeChunks",
"title": "%markdown-preview-enhanced-with-litvis.runAllCodeChunks.title%"
},
{
"command": "markdown-preview-enhanced-with-litvis.runCodeChunk",
"title": "%markdown-preview-enhanced-with-litvis.runCodeChunk.title%"
},
{
"command": "markdown-preview-enhanced-with-litvis.syncPreview",
"title": "%markdown-preview-enhanced-with-litvis.syncPreview.title%"
},
{
"command": "markdown-preview-enhanced-with-litvis.customizeCss",
"title": "%markdown-preview-enhanced-with-litvis.customizeCss.title%"
},
{
"command": "markdown-preview-enhanced-with-litvis.insertNewSlide",
"title": "%markdown-preview-enhanced-with-litvis.insertNewSlide.title%"
},
{
"command": "markdown-preview-enhanced-with-litvis.insertTable",
"title": "%markdown-preview-enhanced-with-litvis.insertTable.title%"
},
{
"command": "markdown-preview-enhanced-with-litvis.insertPagebreak",
"title": "%markdown-preview-enhanced-with-litvis.insertPagebreak.title%"
},
{
"command": "markdown-preview-enhanced-with-litvis.createTOC",
"title": "%markdown-preview-enhanced-with-litvis.createTOC.title%"
},
{
"command": "markdown-preview-enhanced-with-litvis.openMermaidConfig",
"title": "%markdown-preview-enhanced-with-litvis.openMermaidConfig.title%"
},
{
"command": "markdown-preview-enhanced-with-litvis.openMathJaxConfig",
"title": "%markdown-preview-enhanced-with-litvis.openMathJaxConfig.title%"
},
{
"command": "markdown-preview-enhanced-with-litvis.openKaTeXConfig",
"title": "%markdown-preview-enhanced-with-litvis.openKaTeXConfig.title%"
},
{
"command": "markdown-preview-enhanced-with-litvis.extendParser",
"title": "%markdown-preview-enhanced-with-litvis.extendParser.title%"
},
{
"command": "markdown-preview-enhanced-with-litvis.showUploadedImages",
"title": "%markdown-preview-enhanced-with-litvis.showUploadedImages.title%"
},
{
"command": "markdown-preview-enhanced-with-litvis.clearCache",
"title": "%markdown-preview-enhanced-with-litvis.clearCache.title%"
}
],
"configuration": {
"type": "object",
"title": "Markdown Preview Enhanced with litvis",
"properties": {
"markdown-preview-enhanced-with-litvis.configPath": {
"description": "The configuration directory path. Leave it empty to use '~/.mume' as the config path. Please reload vscode to take effect.",
"default": "",
"type": "string"
},
"markdown-preview-enhanced-with-litvis.usePandocParser": {
"description": "Enable this option will render markdown by pandoc instead of markdown-it.",
"default": false,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.breakOnSingleNewLine": {
"description": "In Markdown, a single newline character doesn't cause a line break in the generated HTML. In GitHub Flavored Markdown, that is not true. Enable this config option to insert line breaks in rendered HTML for single newlines in Markdown source.",
"default": true,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.scrollSync": {
"description": "Automatic scroll sync. This is now partially supported.",
"default": true,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.liveUpdate": {
"description": "Re-render the preview as the contents of the source changes, without requiring the source buffer to be saved. If disabled, the preview is re-rendered only when the buffer is saved to disk.",
"default": true,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.singlePreview": {
"description": "Open Only One Preview.",
"default": true,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.automaticallyShowPreviewOfMarkdownBeingEdited": {
"description": "Automatically show preview of markdown being edited.",
"default": true,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.enableTypographer": {
"description": "Enable smartypants and other sweet transforms.",
"default": false,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.mathRenderingOption": {
"description": "Choose the Math expression rendering method here. You can also disable math rendering if you want by choosing 'None'.",
"default": "KaTeX",
"type": "string",
"enum": [
"KaTeX",
"MathJax",
"None"
]
},
"markdown-preview-enhanced-with-litvis.mathInlineDelimiters": {
"description": "Use customized Math expression inline delimiters.",
"default": [
[
"$",
"$"
],
[
"\\(",
"\\)"
]
],
"type": "array"
},
"markdown-preview-enhanced-with-litvis.mathBlockDelimiters": {
"description": "Use customized Math expression block delimiters.",
"default": [
[
"$$",
"$$"
],
[
"\\[",
"\\]"
]
],
"type": "array"
},
"markdown-preview-enhanced-with-litvis.mathRenderingOnlineService": {
"description": "Choose the Math expression rendering method option for GFM markdown export (Save as Markdown).",
"default": "https://latex.codecogs.com/gif.latex",
"type": "string",
"enum": [
"https://latex.codecogs.com/gif.latex",
"https://latex.codecogs.com/svg.latex",
"https://latex.codecogs.com/png.latex"
]
},
"markdown-preview-enhanced-with-litvis.enableWikiLinkSyntax": {
"description": "Enable Wiki Link syntax support. More information can be found at https://help.github.com/articles/adding-links-to-wikis/",
"default": true,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.enableLinkify": {
"description": "Enable or disable conversion of URL-like text to links in the markdown preview.",
"default": true,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.useGitHubStylePipedLink": {
"description": "If checked, we use GitHub style piped wiki links, i.e. [[linkText|wikiLink]]. Otherwise, we use [[wikiLink|linkText]] as the original Wikipedia style.",
"default": true,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.wikiLinkFileExtension": {
"description": "By default, the extension for wikilink is `.md`. For example: [[test]] will direct to file path `test.md`.",
"default": ".md",
"type": "string"
},
"markdown-preview-enhanced-with-litvis.enableEmojiSyntax": {
"description": "Enable emoji & font-awesome plugin. This only works for markdown-it parser, but not pandoc parser.",
"default": true,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.enableExtendedTableSyntax": {
"description": "Enable extended table syntax to support merging table cells.",
"default": false,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.enableCriticMarkupSyntax": {
"description": "Enable CriticMarkup syntax. Only works with markdown-it parser. Please check http://criticmarkup.com/users-guide.php for more information.",
"default": false,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.frontMatterRenderingOption": {
"description": "Front matter rendering option",
"type": "string",
"enum": [
"none",
"table",
"code block"
],
"default": "none"
},
"markdown-preview-enhanced-with-litvis.mermaidTheme": {
"description": "Mermaid theme, you can choose one from [\"mermaid.css\", \"mermaid.dark.css\", \"mermaid.forest.css\"]",
"default": "default",
"type": "string",
"enum": [
"default",
"dark",
"forest"
]
},
"markdown-preview-enhanced-with-litvis.codeBlockTheme": {
"description": "Code block theme. If `auto.css` is chosen, then the code block theme that best matches the current preview theme will be picked.",
"default": "auto.css",
"type": "string",
"enum": [
"auto.css",
"default.css",
"atom-dark.css",
"atom-light.css",
"atom-material.css",
"coy.css",
"darcula.css",
"dark.css",
"funky.css",
"github.css",
"hopscotch.css",
"monokai.css",
"okaidia.css",
"one-dark.css",
"one-light.css",
"pen-paper-coffee.css",
"pojoaque.css",
"solarized-dark.css",
"solarized-light.css",
"twilight.css",
"vs.css",
"vue.css",
"xonokai.css"
]
},
"markdown-preview-enhanced-with-litvis.previewTheme": {
"description": "Preview Theme",
"default": "github-light.css",
"type": "string",
"enum": [
"atom-dark.css",
"atom-light.css",
"atom-material.css",
"github-dark.css",
"github-light.css",
"gothic.css",
"medium.css",
"monokai.css",
"newsprint.css",
"night.css",
"none.css",
"one-dark.css",
"one-light.css",
"solarized-dark.css",
"solarized-light.css",
"vue.css"
]
},
"markdown-preview-enhanced-with-litvis.revealjsTheme": {
"description": "RevealJS Presentation Theme",
"default": "white.css",
"type": "string",
"enum": [
"beige.css",
"black.css",
"blood.css",
"league.css",
"moon.css",
"night.css",
"serif.css",
"simple.css",
"sky.css",
"solarized.css",
"white.css",
"none.css"
]
},
"markdown-preview-enhanced-with-litvis.protocolsWhiteList": {
"description": "Accepted protocols for links.",
"default": "http://, https://, atom://, file://, mailto:, tel:",
"type": "string"
},
"markdown-preview-enhanced-with-litvis.imageFolderPath": {
"description": "When using Image Helper to copy images, by default images will be copied to root image folder path '/assets'",
"default": "/assets",
"type": "string"
},
"markdown-preview-enhanced-with-litvis.imageUploader": {
"description": "You can choose different image uploader to upload image",
"default": "imgur",
"type": "string",
"enum": [
"imgur",
"sm.ms",
"qiniu"
]
},
"markdown-preview-enhanced-with-litvis.AccessKey": {
"type": "string",
"default": "",
"description": "Qiniu AccessKey"
},
"markdown-preview-enhanced-with-litvis.SecretKey": {
"type": "string",
"default": "",
"description": "Qiniu SecretKey"
},
"markdown-preview-enhanced-with-litvis.Bucket": {
"type": "string",
"default": "",
"description": "Qiniu Bucket"
},
"markdown-preview-enhanced-with-litvis.Domain": {
"type": "string",
"default": "http://",
"description": "Qiniu Domain"
},
"markdown-preview-enhanced-with-litvis.printBackground": {
"description": "Whether to print background for file export or not. If set to `false`, then `github-light` preview theme will be used. You can also set `print_background` in front-matter for individual files.",
"default": false,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.chromePath": {
"description": "Chrome executable path, which is used for Puppeteer export. Leaving it empty means the path will be found automatically.",
"default": "",
"type": "string",
"scope": "machine"
},
"markdown-preview-enhanced-with-litvis.imageMagickPath": {
"description": "ImageMagick command line path. Should be either `magick` or `convert`. Leaving it empty means the path will be found automatically.",
"default": "",
"type": "string",
"scope": "machine"
},
"markdown-preview-enhanced-with-litvis.pandocPath": {
"description": "Pandoc executable path",
"default": "pandoc",
"type": "string",
"scope": "machine"
},
"markdown-preview-enhanced-with-litvis.pandocMarkdownFlavor": {
"description": "The pandoc markdown flavor you want",
"default": "markdown-raw_tex+tex_math_single_backslash",
"type": "string"
},
"markdown-preview-enhanced-with-litvis.pandocArguments": {
"description": "Args passed to pandoc command e.g. [\"--smart\", \"--filter=/bin/exe\"] Please use long argument names.",
"default": [],
"type": "array"
},
"markdown-preview-enhanced-with-litvis.latexEngine": {
"description": "Default latex engine for Pandoc export and latex code chunk.",
"default": "pdflatex",
"type": "string"
},
"markdown-preview-enhanced-with-litvis.enableScriptExecution": {
"description": "Enables executing code chunks and importing javascript files.\n⚠️ Please use this feature with caution because it may put your security at risk! Your machine can get hacked if someone makes you open a markdown with malicious code while script execution is enabled.",
"default": false,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.enableHTML5Embed": {
"description": " Enables transform audio video link to to html5 embed audio video tags.",
"default": false,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.HTML5EmbedUseImageSyntax": {
"description": " Enables video/audio embed with ![]() syntax (default).",
"default": true,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.HTML5EmbedUseLinkSyntax": {
"description": "Enables video/audio embed with []() syntax.",
"default": false,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.HTML5EmbedIsAllowedHttp": {
"description": "When true embed media with http:// schema in URLs. When false ignore and don't embed them.",
"default": false,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.HTML5EmbedAudioAttributes": {
"description": "HTML attributes to pass to audio tags.",
"default": "controls preload=\"metadata\" width=\"320\"",
"type": "string"
},
"markdown-preview-enhanced-with-litvis.HTML5EmbedVideoAttributes": {
"description": "HTML attributes to pass to video tags.",
"default": "controls preload=\"metadata\" width=\"320\" height=\"240\"",
"type": "string"
},
"markdown-preview-enhanced-with-litvis.puppeteerWaitForTimeout": {
"description": "Puppeteer waits for a certain timeout in milliseconds before the document export.",
"default": 0,
"type": "number"
},
"markdown-preview-enhanced-with-litvis.usePuppeteerCore": {
"description": "If set to true, then locally installed puppeteer-core will be required. Otherwise, the puppeteer globally installed by `npm install -g puppeteer` will be required.",
"default": true,
"type": "boolean"
},
"markdown-preview-enhanced-with-litvis.puppeteerArgs": {
"description": "Args passed to puppeteer.launch({args: $puppeteerArgs})",
"default": [],
"type": "array"
},
"markdown-preview-enhanced-with-litvis.plantumlServer": {
"description": "Render using PlantUML server instead of binary. Leave it empty to use the builtin plantuml.jar binary (`java` is required in system path). Eg: \"http://localhost:8080/svg/\"",
"default": "",
"type": "string"
},
"markdown-preview-enhanced-with-litvis.hideDefaultVSCodeMarkdownPreviewButtons": {
"description": "Hide the default VSCode markdown preview extension buttons. Restarting the editor is required to make this config take effect.",
"default": true,
"type": "boolean"
}
}
},
"keybindings": [
{
"command": "markdown-preview-enhanced-with-litvis.openPreviewToTheSide",
"key": "ctrl+k v",
"mac": "cmd+k v",
"when": "editorLangId == markdown"
},
{
"command": "markdown-preview-enhanced-with-litvis.openPreview",
"key": "ctrl+shift+v",
"mac": "cmd+shift+v",
"when": "editorLangId == markdown"
},
{
"command": "markdown-preview-enhanced-with-litvis.runAllCodeChunks",
"key": "ctrl+shift+enter",
"when": "editorLangId == markdown"
},
{
"command": "markdown-preview-enhanced-with-litvis.runCodeChunk",
"key": "shift+enter",
"when": "editorLangId == markdown"
},
{
"command": "markdown-preview-enhanced-with-litvis.syncPreview",
"key": "ctrl+shift+s",
"when": "editorLangId == markdown"
}
],
"menus": {
"editor/context": [
{
"command": "markdown-preview-enhanced-with-litvis.openPreviewToTheSide",
"when": "editorLangId == markdown",
"group": "markdown-preview-enhanced-with-litvis"
}
],
"editor/title": [
{
"command": "markdown-preview-enhanced-with-litvis.openPreviewToTheSide",
"when": "editorLangId == markdown",
"group": "navigation"
}
]
}
},
"activationEvents": [
"onLanguage:markdown",
"onCommand:markdown-preview-enhanced-with-litvis.openPreviewToTheSide",
"onCommand:markdown-preview-enhanced-with-litvis.clearCache"
],
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"**/*.*": [
"eslint",
"prettier --write",
"git add"
]
},
"dependencies": {
"mume-with-litvis": "^0.34.0",
"vfile-sort": "^2.2.0"
},
"devDependencies": {
"@types/cheerio": "0.22.21",
"@types/jquery": "^3.3.9",
"@types/node": "^11.11.0",
"@types/vfile": "^3.0.2",
"@types/vscode": "1.70.0",
"eslint": "^8.49.0",
"husky": "^4.3.7",
"lint-staged": "^10.5.3",
"prettier": "^1.18.2",
"prettier-plugin-packagejson": "^2.0.1",
"tslint": "^5.13.1",
"tslint-config-prettier": "^1.18.0",
"typescript": "4.9.4"
},
"engines": {
"vscode": "^1.70.0"
}
}