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