forked from shd101wyy/markdown-preview-enhanced
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
262 lines (262 loc) · 8.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
{
"name": "markdown-preview-enhanced",
"main": "./lib/markdown-preview-enhanced",
"version": "0.8.9",
"description": "One of the 'BEST' markdown preview extensions for Atom editor!",
"repository": "https://github.com/shd101wyy/markdown-preview-enhanced",
"license": "NCSA",
"engines": {
"atom": ">=0.174.0"
},
"keywords": [
"markdown",
"presentation",
"image helper",
"katex",
"mathjax",
"mermaid",
"plantuml",
"wavedrom",
"pdf",
"html",
"exporter",
"phantomjs",
"toc",
"footer",
"graphviz",
"dot language",
"ePub",
"ebook",
"pandoc",
"beamer",
"latex"
],
"scripts": {
"build": "nothing happened"
},
"dependencies": {
"async": "^2.1.2",
"atom-space-pen-views": "^2.2.0",
"cheerio": "^0.15.0",
"gray-matter": "^2.1.0",
"html-pdf": "^2.1.0",
"imgur": "^0.1.7",
"katex": "^0.6.0",
"remarkable": "^1.7.1",
"request": "^2.76.0",
"temp": "^0.8.3",
"uslug": "^1.0.4"
},
"configSchema": {
"fileExtension": {
"type": "string",
"default": ".md, .mmark, .markdown",
"description": "You may need restart Atom after making changes here.",
"order": 0
},
"breakOnSingleNewline": {
"type": "boolean",
"default": true,
"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.",
"order": 10
},
"enableTypographer": {
"type": "boolean",
"default": false,
"description": "Enable smartypants and other sweet transforms.",
"order": 11
},
"mathRenderingOption": {
"type": "string",
"default": "KaTeX",
"description": "Choose the Math expression rendering method here. You can also disable math rendering if you want by choosing 'None'.",
"enum": [
"KaTeX",
"MathJax",
"None"
],
"order": 20
},
"indicatorForMathRenderingInline": {
"title": "Inline Indicator",
"type": "string",
"default": "[[\"$\", \"$\"]]",
"description": "Use customized Math expression inline indicator. By default it is '[[\"$\", \"$\"]]', which means content within '**$**' and '**$**' will be rendered in inline mode. You can also define multiple indicators separated by comma. For example, '[[\"$\", \"$\"], [\"\\\\\\\\(\", \"\\\\\\\\)\"]]' will render inline math expression within '**$**' and '**$**', '**\\\\(**' and '**\\\\)**'. **You may need to restart atom after making changes here**",
"order": 21
},
"indicatorForMathRenderingBlock": {
"title": "Block Indicator",
"type": "string",
"default": "[[\"$$\", \"$$\"]]",
"description": "Use customized Math expression block indicator. By default it is [[\"$$\", \"$$\"]]",
"order": 22
},
"enableWikiLinkSyntax": {
"title": "Enable Wiki Link syntax",
"type": "boolean",
"default": true,
"description": "Enable Wiki Link syntax support. More information can be found at https://help.github.com/articles/adding-links-to-wikis/",
"order": 30
},
"useGitHubStyle": {
"title": "Use GitHub.com style",
"type": "boolean",
"default": true,
"description": "Use the similar CSS styles for preview as the ones used on GitHub.com.",
"order": 40
},
"useGitHubSyntaxTheme": {
"title": "Use GitHub.com syntax theme",
"type": "boolean",
"default": true,
"description": "Use similar GitHub.com code block syntax theme.",
"order": 50
},
"liveUpdate": {
"type": "boolean",
"default": true,
"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. Disable live update will also disable scroll sync.",
"order": 60
},
"frontMatterRenderingOption": {
"title": "Front Matter rendering option",
"type": "string",
"description": "You can choose how to render front matter here. 'none' option will hide front matter.",
"default": "table",
"enum": [
"table",
"code block",
"none"
],
"order": 70
},
"scrollSync": {
"type": "boolean",
"default": true,
"description": "2 way scroll sync. Sync both markdown source and markdown preview when scrolling.",
"order": 75
},
"scrollDuration": {
"type": "string",
"default": "120",
"description": "Scroll duration is defined in milliseconds. Lower value indicates faster scrolling speed. Default is 120ms",
"order": 76
},
"documentExportPath": {
"title": "document export folder path",
"description": "When exporting document to disk, by default the document will be generated at the root path './'",
"type": "string",
"default": "./",
"order": 77
},
"exportPDFPageFormat": {
"title": "Pdf Page Format",
"type": "string",
"default": "Letter",
"enum": [
"A3",
"A4",
"A5",
"Legal",
"Letter",
"Tabloid"
],
"order": 80
},
"orientation": {
"title": "Pdf Page Orientation",
"type": "string",
"default": "portrait",
"enum": [
"portrait",
"landscape"
],
"order": 90
},
"marginsType": {
"title": "Pdf Margin type",
"type": "string",
"default": "default margin",
"enum": [
"default margin",
"no margin",
"minimum margin"
],
"order": 100
},
"printBackground": {
"title": "Print Background when generating pdf",
"type": "boolean",
"default": true,
"description": "Include background color when generating pdf.",
"order": 110
},
"pdfUseGithub": {
"title": "Use Github style when generating pdf",
"type": "boolean",
"default": true,
"description": "If you enabled this option, then the pdf will be generated using Github Style. I add this option because if the markdown preview has black color background, then the generated pdf may also have black color background (if you enabled Print Background), which may affect the appearance of the generated pdf.",
"order": 120
},
"pdfOpenAutomatically": {
"title": "Open pdf file immediately after it is generated",
"type": "boolean",
"default": true,
"description": "If you enabled this option, then when pdf is generated, it will be opened by pdf viewer. For example, on Mac OS X, it will be opened by Preview.",
"order": 130
},
"phantomJSExportFileType": {
"title": "PhantomJS export file type",
"type": "string",
"default": "pdf",
"enum": [
"pdf",
"png",
"jpeg"
],
"order": 131
},
"phantomJSMargin": {
"title": "PhantomJS margins",
"description": "Default is 0, units: mm, cm, in, px. You can also define 'top, right, bottom, left' margins in order like '1cm, 1cm, 1cm, 1cm' separated by comma ','.",
"type": "string",
"default": "1cm",
"order": 132
},
"openPreviewPaneAutomatically": {
"title": "Open preview pane automatically when opening a markdown file",
"type": "boolean",
"default": true,
"order": 140
},
"imageFolderPath": {
"title": "Image save folder path",
"description": "When using Image Helper to copy images, by default images will be copied to root image folder path '/assets'",
"type": "string",
"default": "/assets",
"order": 150
},
"imageUploader": {
"title": "Image Uploader",
"description": "you can choose different image uploader to upload image.",
"type": "string",
"default": "imgur",
"enum": [
"imgur",
"sm.ms"
],
"order": 160
},
"mermaidTheme": {
"title": "Mermaid Theme",
"type": "string",
"default": "mermaid.css",
"enum": [
"mermaid.css",
"mermaid.dark.css",
"mermaid.forest.css"
],
"order": 170
}
}
}