package.json 4.9 KB
Newer Older
E
Erich Gamma 已提交
1
{
K
kieferrm 已提交
2 3 4 5 6
	"name": "vscode-markdown",
	"displayName": "VS Code Markdown",
	"description": "Markdown for VS Code",
	"version": "0.2.0",
	"publisher": "Microsoft",
7
	"aiKey": "AIF-d9b70cd4-b9f9-4d70-929b-a071c400b217",
K
kieferrm 已提交
8 9 10 11 12 13 14 15
	"engines": {
		"vscode": "^1.0.0"
	},
	"main": "./out/extension",
	"categories": [
		"Languages"
	],
	"activationEvents": [
J
Joao Moreno 已提交
16
		"onLanguage:markdown",
17
		"onCommand:markdown.showPreview",
18
		"onCommand:markdown.showPreviewToSide",
19
		"onCommand:markdown.showSource"
K
kieferrm 已提交
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
	],
	"contributes": {
		"languages": [
			{
				"id": "markdown",
				"aliases": [
					"Markdown",
					"markdown"
				],
				"extensions": [
					".md",
					".mdown",
					".markdown",
					".markdn"
				],
35
				"configuration": "./language-configuration.json"
K
kieferrm 已提交
36 37 38 39 40 41 42 43 44 45
			}
		],
		"grammars": [
			{
				"language": "markdown",
				"scopeName": "text.html.markdown",
				"path": "./syntaxes/markdown.tmLanguage"
			}
		],
		"commands": [
46 47
			{
				"command": "markdown.showPreview",
48
				"title": "%markdown.preview.title%",
49
				"category": "Markdown",
50 51 52
				"icon": {
					"light": "./media/Preview.svg",
					"dark": "./media/Preview_inverse.svg"
53 54 55 56
				}
			},
			{
				"command": "markdown.showPreviewToSide",
57
				"title": "%markdown.previewSide.title%",
58
				"category": "Markdown",
59
				"icon": {
60 61
					"light": "./media/PreviewOnRightPane_16x.svg",
					"dark": "./media/PreviewOnRightPane_16x_dark.svg"
62
				}
63 64
			},
			{
65
				"command": "markdown.showSource",
66
				"title": "%markdown.showSource.title%",
67
				"category": "Markdown",
68 69 70
				"icon": {
					"light": "./media/ViewSource.svg",
					"dark": "./media/ViewSource_inverse.svg"
71
				}
72 73 74 75 76
			},
			{
				"command": "markdown.showPreviewSecuritySelector",
				"title": "%markdown.showPreviewSecuritySelector.title%",
				"category": "Markdown"
K
kieferrm 已提交
77 78
			}
		],
79
		"menus": {
80
			"editor/title": [
81
				{
82
					"when": "editorLangId == markdown",
83
					"command": "markdown.showPreview",
84 85
					"alt": "markdown.showPreviewToSide",
					"group": "navigation"
86 87
				},
				{
88
					"when": "resourceScheme == markdown",
89 90
					"command": "markdown.showSource",
					"group": "navigation"
91 92 93 94
				},
				{
					"when": "resourceScheme == markdown",
					"command": "markdown.showPreviewSecuritySelector"
95
				}
96 97 98
			],
			"explorer/context": [
				{
99
					"when": "resourceLangId == markdown",
100 101
					"command": "markdown.showPreview",
					"group": "navigation"
102
				}
103 104
			]
		},
K
kieferrm 已提交
105 106
		"keybindings": [
			{
107
				"command": "markdown.showPreview",
K
kieferrm 已提交
108
				"key": "shift+ctrl+v",
109
				"mac": "shift+cmd+v",
D
Daniel Imms 已提交
110
				"when": "editorFocus"
K
kieferrm 已提交
111 112
			},
			{
113
				"command": "markdown.showPreviewToSide",
K
kieferrm 已提交
114
				"key": "ctrl+k v",
D
Daniel Imms 已提交
115 116
				"mac": "cmd+k v",
				"when": "editorFocus"
K
kieferrm 已提交
117 118
			}
		],
119 120 121 122 123 124
		"snippets": [
			{
				"language": "markdown",
				"path": "./snippets/markdown.json"
			}
		],
125 126
		"configuration": {
			"type": "object",
127 128
			"title": "Markdown",
			"order": 20,
129 130
			"properties": {
				"markdown.styles": {
131
					"type": "array",
132
					"default": [],
133
					"description": "%markdown.styles.dec%"
134 135
				},
				"markdown.previewFrontMatter": {
136 137 138 139 140
					"type": "string",
					"enum": [
						"hide",
						"show"
					],
141
					"default": "hide",
142
					"description": "%markdown.previewFrontMatter.dec%"
143 144 145
				},
				"markdown.preview.fontFamily": {
					"type": "string",
146
					"default": "'Segoe WPC', 'Segoe UI', 'SFUIText-Light', 'HelveticaNeue-Light', sans-serif",
147 148 149 150 151 152 153 154 155 156 157
					"description": "%markdown.preview.fontFamily.desc%"
				},
				"markdown.preview.fontSize": {
					"type": "number",
					"default": 14,
					"description": "%markdown.preview.fontSize.desc%"
				},
				"markdown.preview.lineHeight": {
					"type": "number",
					"default": 1.6,
					"description": "%markdown.preview.lineHeight.desc%"
158
				},
159
				"markdown.preview.scrollPreviewWithEditorSelection": {
160 161
					"type": "boolean",
					"default": true,
162
					"description": "%markdown.preview.scrollPreviewWithEditorSelection.desc%"
163
				},
164
				"markdown.preview.markEditorSelection": {
165 166
					"type": "boolean",
					"default": true,
167 168 169 170 171 172
					"description": "%markdown.preview.markEditorSelection.desc%"
				},
				"markdown.preview.scrollEditorWithPreview": {
					"type": "boolean",
					"default": true,
					"description": "%markdown.preview.scrollEditorWithPreview.desc%"
M
Matt Bierner 已提交
173 174 175 176 177
				},
				"markdown.preview.doubleClickToSwitchToEditor": {
					"type": "boolean",
					"default": true,
					"description": "%markdown.preview.doubleClickToSwitchToEditor.desc%"
178 179
				}
			}
180 181 182 183 184 185
		},
		"configurationDefaults": {
			"[markdown]": {
				"editor.wordWrap": "on",
				"editor.quickSuggestions": false
			}
186
		}
K
kieferrm 已提交
187
	},
J
Johannes Rieken 已提交
188
	"scripts": {
189 190
		"vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:markdown ./tsconfig.json",
		"update-grammar": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ./syntaxes/gulpfile.js"
K
kieferrm 已提交
191
	},
K
kieferrm 已提交
192 193
	"dependencies": {
		"highlight.js": "^9.3.0",
K
katainaka 已提交
194
		"markdown-it": "^8.2.2",
K
kieferrm 已提交
195
		"markdown-it-named-headers": "0.0.4",
196 197
		"vscode-extension-telemetry": "^0.0.6",
		"vscode-nls": "^2.0.2"
198 199
	},
	"devDependencies": {
200 201 202
		"@types/node": "^7.0.4",
		"gulp-rename": "^1.2.2",
		"gulp-replace": "^0.5.4"
K
kieferrm 已提交
203
	}
E
Erich Gamma 已提交
204
}