-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
554 lines (554 loc) · 21.4 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
{
"name": "coc-markdown-preview-enhanced",
"version": "0.5.5",
"description": "Markdown Preview Enhanced ported to coc.nvim",
"author": "Weirong Xu <weirongxu.raidou@gmail.com>",
"license": "University of Illinois/NCSA",
"main": "lib/index.js",
"repository": "git@github.com:weirongxu/coc-markdown-preview-enhanced.git",
"homepage": "https://github.com/weirongxu/coc-markdown-preview-enhanced",
"keywords": [
"coc.nvim",
"markdown",
"preview",
"markdown-preview",
"markdown-preview-enhanced"
],
"engines": {
"node": ">=14.14",
"coc": "^0.0.80"
},
"scripts": {
"lint": "eslint src --ext ts",
"clean": "rimraf lib",
"watch": "node esbuild.js --watch",
"build:pack": "node esbuild.js",
"check:type": "tsc --noEmit",
"build": "run-s check:type lint build:pack",
"prepare": "run-s build",
"test": "run-s check:type lint"
},
"prettier": {
"singleQuote": true,
"trailingComma": "all",
"printWidth": 80,
"semi": false
},
"devDependencies": {
"@raidou/eslint-config-base": "^2.1.0",
"@types/eslint": "^8.44.1",
"@types/node": "^14.0.0",
"@types/uuid": "^9.0.2",
"coc-helper": "^0.16.3",
"coc-webview": "^0.12.0",
"coc.nvim": "^0.0.83-next.9",
"esbuild": "^0.19.5",
"esbuild-plugin-alias": "^0.2.1",
"eslint": "^8.53.0",
"isbinaryfile": "^5.0.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.0.1",
"rimraf": "^5.0.1",
"typescript": "^5.1.6"
},
"dependencies": {
"@shd101wyy/mume": "0.7.9",
"@types/vfile": "^3.0.2"
},
"overrides": {
"cheerio": "1.0.0-rc.12"
},
"activationEvents": [
"onCommand:markdown-preview-enhanced.openPreview",
"onCommand:markdown-preview-enhanced.openPreviewBackground",
"onLanguage:markdown"
],
"contributes": {
"configuration": {
"type": "object",
"title": "Markdown Preview Enhanced",
"properties": {
"markdown-preview-enhanced.configPath": {
"description": "The configuration directory path. Leave it empty to use '~/.mume' as the config path. Please restart coc.nvim to take effect.",
"default": "",
"type": "string"
},
"markdown-preview-enhanced.usePandocParser": {
"description": "Enable this option will render markdown by pandoc instead of markdown-it.",
"default": false,
"type": "boolean"
},
"markdown-preview-enhanced.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": false,
"type": "boolean"
},
"markdown-preview-enhanced.scrollSync": {
"description": "Automatic scroll sync. This is now partially supported.",
"default": true,
"type": "boolean"
},
"markdown-preview-enhanced.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.singlePreview": {
"description": "Open Only One Preview.",
"default": true,
"type": "boolean"
},
"markdown-preview-enhanced.automaticallyShowPreviewOfMarkdownBeingEdited": {
"description": "Automatically show preview of markdown being edited.",
"default": false,
"type": "boolean"
},
"markdown-preview-enhanced.previewColorScheme": {
"type": "string",
"enum": [
"selectedPreviewTheme",
"systemColorScheme",
"editorColorScheme"
],
"default": "selectedPreviewTheme",
"markdownEnumDescriptions": [
"Use the `markdown-preview-enhanced.previewTheme` setting.",
"Follow system color scheme. If set to true, then the theme of markdown preview will automatically switch between light and dark when your system switch between light and dark. For example, if you set the current preview theme to `github-light.css`, then when your system is dark, the preview theme will be switched to `github-dark.css` automatically. If set to false, then the theme of markdown preview will not be changed automatically.",
"Use the same theme as the editor (background option, light or dark). If set to true, then the theme of markdown preview will automatically switch between light and dark when you switch between light and dark theme. For example, if you set the current preview theme to `github-light.css`, then when you switch to vscode dark theme, the preview theme will be switched to `github-dark.css` automatically. If set to false, then the theme of markdown preview will not be changed automatically."
]
},
"markdown-preview-enhanced.enableTypographer": {
"description": "Enable smartypants and other sweet transforms.",
"default": false,
"type": "boolean"
},
"markdown-preview-enhanced.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.mathInlineDelimiters": {
"description": "Use customized Math expression inline delimiters.",
"default": [
[
"$",
"$"
],
[
"\\(",
"\\)"
]
],
"type": "array"
},
"markdown-preview-enhanced.mathBlockDelimiters": {
"description": "Use customized Math expression block delimiters.",
"default": [
[
"$$",
"$$"
],
[
"\\[",
"\\]"
]
],
"type": "array"
},
"markdown-preview-enhanced.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.mathjaxV3ScriptSrc": {
"description": "MathJax v3 script source. Leave it empty to use the default CDN.",
"default": "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js",
"type": "string"
},
"markdown-preview-enhanced.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.enableLinkify": {
"description": "Enable or disable conversion of URL-like text to links in the markdown preview.",
"default": true,
"type": "boolean"
},
"markdown-preview-enhanced.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.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.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.enableExtendedTableSyntax": {
"description": "Enable extended table syntax to support merging table cells.",
"default": false,
"type": "boolean"
},
"markdown-preview-enhanced.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.frontMatterRenderingOption": {
"description": "Front matter rendering option",
"type": "string",
"enum": [
"none",
"table",
"code block"
],
"default": "none"
},
"markdown-preview-enhanced.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.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.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"
],
"markdownEnumDescriptions": [
"Atom Dark",
"Atom Light",
"Atom Material",
"GitHub Dark",
"GitHub Light",
"Gothic",
"Medium",
"Monokai",
"Newsprint",
"Night",
"None",
"One Dark",
"One Light",
"Solarized Dark",
"Solarized Light",
"Vue"
]
},
"markdown-preview-enhanced.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.protocolsWhiteList": {
"description": "Accepted protocols for links.",
"default": "http://, https://, atom://, file://, mailto:, tel:",
"type": "string"
},
"markdown-preview-enhanced.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.imageUploader": {
"description": "You can choose different image uploader to upload image",
"default": "imgur",
"type": "string",
"enum": [
"imgur",
"sm.ms",
"qiniu"
]
},
"markdown-preview-enhanced.AccessKey": {
"type": "string",
"default": "",
"description": "Qiniu AccessKey"
},
"markdown-preview-enhanced.SecretKey": {
"type": "string",
"default": "",
"description": "Qiniu SecretKey"
},
"markdown-preview-enhanced.Bucket": {
"type": "string",
"default": "",
"description": "Qiniu Bucket"
},
"markdown-preview-enhanced.Domain": {
"type": "string",
"default": "http://",
"description": "Qiniu Domain"
},
"markdown-preview-enhanced.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.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.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.pandocPath": {
"description": "Pandoc executable path",
"default": "pandoc",
"type": "string",
"scope": "machine"
},
"markdown-preview-enhanced.pandocMarkdownFlavor": {
"description": "The pandoc markdown flavor you want",
"default": "markdown-raw_tex+tex_math_single_backslash",
"type": "string"
},
"markdown-preview-enhanced.pandocArguments": {
"description": "Args passed to pandoc command e.g. [\"--smart\", \"--filter=/bin/exe\"] Please use long argument names.",
"default": [],
"type": "array"
},
"markdown-preview-enhanced.latexEngine": {
"description": "Default latex engine for Pandoc export and latex code chunk.",
"default": "pdflatex",
"type": "string"
},
"markdown-preview-enhanced.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.enableHTML5Embed": {
"description": " Enables transform audio video link to to html5 embed audio video tags.",
"default": false,
"type": "boolean"
},
"markdown-preview-enhanced.HTML5EmbedUseImageSyntax": {
"description": " Enables video/audio embed with ![]() syntax (default).",
"default": true,
"type": "boolean"
},
"markdown-preview-enhanced.HTML5EmbedUseLinkSyntax": {
"description": "Enables video/audio embed with []() syntax.",
"default": false,
"type": "boolean"
},
"markdown-preview-enhanced.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.HTML5EmbedAudioAttributes": {
"description": "HTML attributes to pass to audio tags.",
"default": "controls preload=\"metadata\" width=\"320\"",
"type": "string"
},
"markdown-preview-enhanced.HTML5EmbedVideoAttributes": {
"description": "HTML attributes to pass to video tags.",
"default": "controls preload=\"metadata\" width=\"320\" height=\"240\"",
"type": "string"
},
"markdown-preview-enhanced.puppeteerWaitForTimeout": {
"description": "Puppeteer waits for a certain timeout in milliseconds before the document export.",
"default": 0,
"type": "number"
},
"markdown-preview-enhanced.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.puppeteerArgs": {
"description": "Args passed to puppeteer.launch({args: $puppeteerArgs})",
"default": [],
"type": "array"
},
"markdown-preview-enhanced.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.jsdelivrCdnHost": {
"markdownDescription": "jsDelivr CDN host. Example values: `cdn.jsdelivr.net`, `fastly.jsdelivr.net`, `gcore.jsdelivr.net`, `testingcf.jsdelivr.net`",
"default": "cdn.jsdelivr.net",
"type": "string"
},
"markdown-preview-enhanced.plantumlJarPath": {
"description": "Absolute path to the plantuml.jar file (`java` is required in system path).",
"default": "",
"type": "string"
},
"markdown-preview-enhanced.krokiServer": {
"description": "The URL of the Kroki server to use. ",
"default": "https://kroki.io",
"type": "string"
}
}
},
"commands": [
{
"command": "markdown-preview-enhanced.openPreview",
"title": "Markdown Preview Enhanced: Open Preview",
"category": "Markdown"
},
{
"command": "markdown-preview-enhanced.openPreviewBackground",
"title": "Markdown Preview Enhanced: Open Preview but not openURL",
"category": "Markdown"
},
{
"command": "markdown-preview-enhanced.toggleScrollSync",
"title": "Markdown Preview Enhanced: Toggle Scroll Sync"
},
{
"command": "markdown-preview-enhanced.toggleLiveUpdate",
"title": "Markdown Preview Enhanced: Toggle Live Update"
},
{
"command": "markdown-preview-enhanced.toggleBreakOnSingleNewLine",
"title": "Markdown Preview Enhanced: Toggle Break On Single New Line"
},
{
"command": "markdown-preview-enhanced.openImageHelper",
"title": "Markdown Preview Enhanced: Image Helper"
},
{
"command": "markdown-preview-enhanced.runAllCodeChunks",
"title": "Markdown Preview Enhanced: Run All Code Chunks"
},
{
"command": "markdown-preview-enhanced.runCodeChunk",
"title": "Markdown Preview Enhanced: Run Code Chunk"
},
{
"command": "markdown-preview-enhanced.syncPreview",
"title": "Markdown Preview Enhanced: Sync Preview"
},
{
"command": "markdown-preview-enhanced.customizeCss",
"title": "Markdown Preview Enhanced: Customize CSS"
},
{
"command": "markdown-preview-enhanced.insertNewSlide",
"title": "Markdown Preview Enhanced: Insert New Slide"
},
{
"command": "markdown-preview-enhanced.insertTable",
"title": "Markdown Preview Enhanced: Insert Table"
},
{
"command": "markdown-preview-enhanced.insertPagebreak",
"title": "Markdown Preview Enhanced: Insert Page Break"
},
{
"command": "markdown-preview-enhanced.createTOC",
"title": "Markdown Preview Enhanced: Create TOC"
},
{
"command": "markdown-preview-enhanced.openMermaidConfig",
"title": "Markdown Preview Enhanced: Open Mermaid Config"
},
{
"command": "markdown-preview-enhanced.openMathJaxConfig",
"title": "Markdown Preview Enhanced: Open MathJax Config"
},
{
"command": "markdown-preview-enhanced.openKaTeXConfig",
"title": "Markdown Preview Enhanced: Open KaTeX Config"
},
{
"command": "markdown-preview-enhanced.extendParser",
"title": "Markdown Preview Enhanced: Extend Parser"
},
{
"command": "markdown-preview-enhanced.showUploadedImages",
"title": "Markdown Preview Enhanced: Show Uploaded Images"
}
]
}
}