package.json 2.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": [
16
		"onCommand:markdown.showPreview",
17 18
		"onCommand:markdown.showPreviewToSide",
		"onCommand:markdown.showSource"
K
kieferrm 已提交
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
	],
	"contributes": {
		"languages": [
			{
				"id": "markdown",
				"aliases": [
					"Markdown",
					"markdown"
				],
				"extensions": [
					".md",
					".mdown",
					".markdown",
					".markdn"
				],
				"configuration": "./markdown.configuration.json"
			}
		],
		"grammars": [
			{
				"language": "markdown",
				"scopeName": "text.html.markdown",
				"path": "./syntaxes/markdown.tmLanguage"
			}
		],
		"commands": [
45 46
			{
				"command": "markdown.showPreview",
47
				"title": "%markdown.preview.title%",
48 49 50 51
				"category": "%markdown.category%",
				"icon": {
					"light": "./media/Preview.svg",
					"dark": "./media/Preview_inverse.svg"
52 53 54 55
				}
			},
			{
				"command": "markdown.showPreviewToSide",
56
				"title": "%markdown.previewSide.title%",
57 58 59 60
				"icon": {
					"light": "./media/Preview.svg",
					"dark": "./media/Preview_inverse.svg"
				}
61 62
			},
			{
63
				"command": "markdown.showSource",
64
				"title": "%markdown.showSource.title%",
65 66 67 68
				"category": "%markdown.category%",
				"icon": {
					"light": "./media/ViewSource.svg",
					"dark": "./media/ViewSource_inverse.svg"
69
				}
K
kieferrm 已提交
70 71
			}
		],
72
		"menus": {
73
			"editor/title": [
74 75 76
				{
					"when": "resourceLangId == markdown",
					"command": "markdown.showPreview",
77 78
					"alt": "markdown.showPreviewToSide",
					"group": "navigation"
79 80
				},
				{
81
					"when": "resourceScheme == markdown",
82 83
					"command": "markdown.showSource",
					"group": "navigation"
84
				}
85 86 87 88
			],
			"explorer/context": [
				{
					"when": "resourceLangId == markdown",
89 90
					"command": "markdown.showPreview",
					"group": "navigation"
91
				}
92 93
			]
		},
K
kieferrm 已提交
94 95
		"keybindings": [
			{
96
				"command": "markdown.showPreview",
K
kieferrm 已提交
97 98 99 100
				"key": "shift+ctrl+v",
				"mac": "shift+cmd+v"
			},
			{
101
				"command": "markdown.showPreviewToSide",
K
kieferrm 已提交
102 103 104 105
				"key": "ctrl+k v",
				"mac": "cmd+k v"
			}
		],
106 107 108 109 110 111
		"snippets": [
			{
				"language": "markdown",
				"path": "./snippets/markdown.json"
			}
		],
112 113
		"configuration": {
			"type": "object",
114 115
			"title": "Markdown",
			"order": 20,
116 117 118
			"properties": {
				"markdown.styles": {
					"type": "array",
119
					"default": null,
120 121 122 123
					"description": "A list of URLs or local paths to CSS style sheets to use from the markdown preview."
				}
			}
		}
K
kieferrm 已提交
124
	},
J
Johannes Rieken 已提交
125
	"scripts": {
K
kieferrm 已提交
126 127
		"vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:markdown ./tsconfig.json"
	},
K
kieferrm 已提交
128 129 130
	"dependencies": {
		"highlight.js": "^9.3.0",
		"markdown-it": "^6.0.1",
K
kieferrm 已提交
131 132
		"markdown-it-named-headers": "0.0.4",
		"vscode-extension-telemetry": "^0.0.5"
K
kieferrm 已提交
133
	}
E
Erich Gamma 已提交
134
}