-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpackage.json
148 lines (148 loc) · 4.11 KB
/
package.json
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
{
"name": "ultra-math-preview",
"displayName": "Ultra Math Preview",
"description": "real-time math preview for latex and markdown",
"keywords": [
"math",
"math preview",
"markdown",
"latex"
],
"icon": "image/icon.ico",
"repository": {
"type": "git",
"url": "https://github.com/yfzhao20/vscode-ultra-math-preview"
},
"bugs": {
"url": "https://github.com/yfzhao20/vscode-ultra-math-preview/issues"
},
"version": "0.2.5",
"publisher": "yfzhao",
"preview": true,
"engines": {
"vscode": "^1.54.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onLanguage:markdown",
"onLanguage:latex"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "umath.preview.closeAllPreview",
"title": "Ultra Math Preview: Close All Preview"
},
{
"command": "umath.preview.reloadPreview",
"title": "Ultra Math Preview: Reload Preview"
},
{
"command": "umath.preview.reloadMacros",
"title": "Ultra Math Preview: Reload Macros"
},
{
"command": "umath.preview.toggleMathPreview",
"title": "Ultra Math Preview: Toggle Math Preview"
}
],
"menus": {
"editor/context": [
{
"command": "umath.preview.closeAllPreview",
"group": "navigation",
"when": "editorFocus && editorLangId =~ /latex|markdown/"
},
{
"command": "umath.preview.reloadPreview",
"group": "navigation",
"when": "editorFocus && editorLangId =~ /latex|markdown/"
}
]
},
"configuration": [
{
"title": "Ultra Math Preview",
"properties": {
"umath.preview.enableMathPreview": {
"type": "boolean",
"default": true,
"description": "Show math preview."
},
"umath.preview.AutoAdjustPreviewPosition": {
"type": "boolean",
"default": true,
"description": "Automatically adjusts the position of the preview window."
},
"umath.preview.DebounceTime": {
"type": "string",
"default": 0,
"description": "Adjust the Debounce Time (ms) to suit different device performance. When set to 0, it will be disabled."
},
"umath.preview.position": {
"type": "string",
"enum": [
"top",
"bottom"
],
"default": "bottom",
"description": "Set math preview position."
},
"umath.preview.renderer": {
"type": "string",
"enum": [
"mathjax",
"katex"
],
"default": "mathjax",
"description": "Select math renderer."
},
"umath.preview.macros": {
"type": "array",
"default": [],
"description": "User-defined macros."
},
"umath.preview.customCSS": {
"type": "array",
"default": [],
"description": "User-defined CSS style."
}
}
}
],
"keybindings": [
{
"command": "umath.preview.closeAllPreview",
"key": "escape",
"when": "umathShowPreview"
}
]
},
"extensionDependencies": [
"yfzhao.hscopes-booster"
],
"scripts": {
"vscode:prepublish": "npm run esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.js --bundle --inject:./src/MathJax-shim.js --define:global.MathJax=MathJax --platform=node --format=cjs --external:vscode --outfile=dist/extension.js",
"esbuild-watch": "npm run esbuild-base -- --sourcemap --watch",
"lint": "eslint .",
"pretest": "npm run lint",
"test": "node ./test/runTest.js"
},
"devDependencies": {
"@types/glob": "^7.2.0",
"@types/mocha": "^9.0.0",
"@types/node": "18.0.0",
"@types/vscode": "^1.54.0",
"@vscode/test-electron": "^2.0.3",
"esbuild": "^0.14.29",
"eslint": "^8.6.0",
"glob": "^7.2.0",
"katex": "^0.15.3",
"mathjax-full": "3.2.0",
"mocha": "^9.1.3"
}
}