package.json 2.2 KB
Newer Older
E
Erich Gamma 已提交
1
{
K
kieferrm 已提交
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
	"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": [
		"onCommand:extension.previewMarkdown",
		"onCommand:extension.previewMarkdownSide"
	],
	"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": [
			{
				"command": "extension.previewMarkdown",
45
				"title": "%markdown.previewMarkdown.title%",
46 47 48 49 50
				"category": "%markdown.category%",
				"icon": {
					"light": "./media/Preview.svg",
					"dark": "./media/Preview_inverse.svg"
				},
51
				"where": ["editor/primary"],
52 53 54 55 56 57 58 59 60 61 62 63
				"when": "markdown"
			},
			{
				"title": "%markdown.previewMarkdown.title%",
				"category": "%markdown.category%",
				"icon": {
					"light": "./media/ViewSource.svg",
					"dark": "./media/ViewSource_inverse.svg"
				},
				"where": ["editor/primary"],
				"when": { "scheme": "markdown" },
				"command": "extension.previewMarkdown"
K
kieferrm 已提交
64 65 66
			},
			{
				"command": "extension.previewMarkdownSide",
67
				"title": "%markdown.previewMarkdownSide.title%",
68 69
				"where": "editor/secondary",
				"when": "markdown"
K
kieferrm 已提交
70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
			}
		],
		"keybindings": [
			{
				"command": "extension.previewMarkdown",
				"key": "shift+ctrl+v",
				"mac": "shift+cmd+v"
			},
			{
				"command": "extension.previewMarkdownSide",
				"key": "ctrl+k v",
				"mac": "cmd+k v"
			}
		],
		"snippets": [{
E
Erich Gamma 已提交
85 86 87
			"language": "markdown",
			"path": "./snippets/markdown.json"
		}]
K
kieferrm 已提交
88
	},
J
Johannes Rieken 已提交
89
	"scripts": {
K
kieferrm 已提交
90 91
		"vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:markdown ./tsconfig.json"
	},
K
kieferrm 已提交
92 93 94 95 96
	"dependencies": {
		"highlight.js": "^9.3.0",
		"markdown-it": "^6.0.1",
		"markdown-it-named-headers": "0.0.4"
	}
E
Erich Gamma 已提交
97
}