package.json 2.4 KB
Newer Older
E
Erich Gamma 已提交
1
{
K
kieferrm 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14
	"name": "vscode-markdown",
	"displayName": "VS Code Markdown",
	"description": "Markdown for VS Code",
	"version": "0.2.0",
	"publisher": "Microsoft",
	"engines": {
		"vscode": "^1.0.0"
	},
	"main": "./out/extension",
	"categories": [
		"Languages"
	],
	"activationEvents": [
15 16
		"onCommand:markdown.showPreview",
		"onCommand:markdown.showPreviewToSide"
K
kieferrm 已提交
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
	],
	"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": [
43 44
			{
				"command": "markdown.showPreview",
45
				"title": "%markdown.previewMarkdown.title%",
46 47 48 49 50
				"category": "%markdown.category%",
				"icon": {
					"light": "./media/Preview.svg",
					"dark": "./media/Preview_inverse.svg"
				},
51 52
				"when": "resourceLangId == markdown",
				"where": "editor/primary"
53 54
			},
			{
55
				"command": "markdown.showSource",
56 57 58 59 60 61
				"title": "%markdown.previewMarkdown.title%",
				"category": "%markdown.category%",
				"icon": {
					"light": "./media/ViewSource.svg",
					"dark": "./media/ViewSource_inverse.svg"
				},
62 63
				"when": "resourceScheme == markdown",
				"where": "editor/primary"
K
kieferrm 已提交
64 65
			},
			{
66
				"command": "markdown.showPreviewToSide",
67
				"title": "%markdown.previewMarkdownSide.title%",
68 69
				"when": "resourceLangId == markdown",
				"where": "editor/secondary"
K
kieferrm 已提交
70 71 72 73
			}
		],
		"keybindings": [
			{
74
				"command": "markdown.showPreview",
K
kieferrm 已提交
75 76 77 78
				"key": "shift+ctrl+v",
				"mac": "shift+cmd+v"
			},
			{
79
				"command": "markdown.showPreviewToSide",
K
kieferrm 已提交
80 81 82 83 84
				"key": "ctrl+k v",
				"mac": "cmd+k v"
			}
		],
		"snippets": [{
E
Erich Gamma 已提交
85 86
			"language": "markdown",
			"path": "./snippets/markdown.json"
87 88 89 90 91 92 93 94 95 96 97 98
		}],
		"configuration": {
			"type": "object",
			"title": "Markdown preview configuration",
			"properties": {
				"markdown.styles": {
					"type": "array",
					"default" : null,
					"description": "A list of URLs or local paths to CSS style sheets to use from the markdown preview."
				}
			}
		}
K
kieferrm 已提交
99
	},
J
Johannes Rieken 已提交
100
	"scripts": {
K
kieferrm 已提交
101 102
		"vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:markdown ./tsconfig.json"
	},
K
kieferrm 已提交
103 104 105 106 107
	"dependencies": {
		"highlight.js": "^9.3.0",
		"markdown-it": "^6.0.1",
		"markdown-it-named-headers": "0.0.4"
	}
E
Erich Gamma 已提交
108
}