forked from alanwalk/markdown-toc
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpackage.json
More file actions
175 lines (175 loc) · 6.01 KB
/
package.json
File metadata and controls
175 lines (175 loc) · 6.01 KB
1
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
{
"name": "auto-markdown-toc",
"displayName": "Auto Markdown TOC",
"description": "Markdown TOC (Table Of Contents) Plugin for Visual Studio Code.",
"version": "3.0.15",
"preview": true,
"icon": "img/markdown-toc.png",
"license": "MIT",
"author": {
"email": "hunter.tran.92@gmail.com",
"name": "Hunter Tran",
"url": "https://coding4food.net/"
},
"bugs": {
"url": "https://github.com/huntertran/markdown-toc/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/huntertran/markdown-toc.git"
},
"keywords": [
"markdown",
"toc"
],
"homepage": "https://github.com/huntertran/markdown-toc",
"publisher": "huntertran",
"engines": {
"vscode": "^1.46.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:markdown"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "extension.updateMarkdownToc",
"title": "Auto Markdown TOC: Insert/Update"
},
{
"command": "extension.deleteMarkdownToc",
"title": "Auto Markdown TOC: Delete"
},
{
"command": "extension.updateMarkdownSections",
"title": "Auto Markdown Sections: Insert/Update"
},
{
"command": "extension.deleteMarkdownSections",
"title": "Auto Markdown Sections: Delete"
}
],
"menus": {
"editor/context": [
{
"when": "editorLangId == 'markdown'",
"command": "extension.updateMarkdownToc"
},
{
"when": "editorLangId == 'markdown'",
"command": "extension.deleteMarkdownToc"
},
{
"when": "editorLangId == 'markdown'",
"command": "extension.updateMarkdownSections"
},
{
"when": "editorLangId == 'markdown'",
"command": "extension.deleteMarkdownSections"
}
]
},
"keybindings": [
{
"command": "extension.updateMarkdownToc",
"when": "editorTextFocus && editorLangId == markdown",
"key": "ctrl+m t"
},
{
"command": "extension.updateMarkdownSections",
"when": "editorTextFocus && editorLangId == markdown",
"key": "ctrl+m s"
}
],
"configuration": {
"type": "object",
"title": "Markdown TOC configuration",
"properties": {
"markdown-toc.depthFrom": {
"type": "number",
"default": 1,
"description": "Depth control [1-6]."
},
"markdown-toc.depthTo": {
"type": "number",
"default": 6,
"description": "Depth control [1-6]."
},
"markdown-toc.insertAnchor": {
"type": "boolean",
"default": false,
"description": "Auto insert anchor for link."
},
"markdown-toc.withLinks": {
"type": "boolean",
"default": true,
"description": "Auto insert link."
},
"markdown-toc.orderedList": {
"type": "boolean",
"default": false,
"description": "Use ordered list (1. ..., 2. ...)."
},
"markdown-toc.bulletCharacter": {
"type": "string",
"default": "-",
"description": "Bullet character for TOC"
},
"markdown-toc.updateOnSave": {
"type": "boolean",
"default": true,
"description": "Auto update on save."
},
"markdown-toc.anchorMode": {
"type": "string",
"default": "github.com",
"description": "anchor mode.",
"enum": [
"github.com",
"bitbucket.org",
"ghost.org",
"gitlab.com"
]
},
"markdown-toc.detectAndAutoSetSection": {
"type": "boolean",
"default": true,
"description": "Auto set header sections when detected"
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "webpack",
"watch": "webpack --watch",
"package": "webpack --mode production --devtool hidden-source-map",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js"
},
"dependencies": {
"anchor-markdown-header": "^0.7.0"
},
"devDependencies": {
"@vscode/test-electron": "^2.5.2",
"@types/glob": "^7.1.3",
"@types/mocha": "^8.0.3",
"@types/node": "^14.10.1",
"@types/vscode": "^1.46.0",
"@typescript-eslint/eslint-plugin": "^5.33.0",
"@typescript-eslint/parser": "^5.33.0",
"eslint": "^8.22.0",
"glob": "^7.1.6",
"mocha": "^10.2.0",
"ts-loader": "^9.3.1",
"typescript": "^4.7.4",
"webpack-cli": "^4.10.0"
}
}