-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
182 lines (182 loc) · 5.67 KB
/
package.json
File metadata and controls
182 lines (182 loc) · 5.67 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
176
177
178
179
180
181
182
{
"name": "latex-math-preview",
"displayName": "LaTeX Math Preview",
"description": "Math preview panel for LaTeX and Markdown in VS Code.",
"version": "0.2.0",
"publisher": "youjack",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/Youjack/LaTeX-Math-Preview.git"
},
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Programming Languages",
"Visualization"
],
"activationEvents": [
"onCommand:latex-math-preview.openMathPreviewPanel",
"onCommand:latex-math-preview.closeMathPreviewPanel",
"onCommand:latex-math-preview.toggleMathPreviewPanel",
"onLanguage:latex",
"onLanguage:markdown"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "latex-math-preview.openMathPreviewPanel",
"title": "Open Math Preview Panel",
"category": "LaTeX Math Preview"
},
{
"command": "latex-math-preview.closeMathPreviewPanel",
"title": "Close Math Preview Panel",
"category": "LaTeX Math Preview"
},
{
"command": "latex-math-preview.toggleMathPreviewPanel",
"title": "Toggle Math Preview Panel",
"category": "LaTeX Math Preview"
}
],
"keybindings": [
{
"key": "ctrl+alt+m",
"mac": "cmd+alt+m",
"command": "latex-math-preview.toggleMathPreviewPanel",
"when": "editorTextFocus && editorLangId =~ /^latex$|^markdown$/"
}
],
"configuration": {
"title": "LaTeX Math Preview",
"properties": {
"latex-math-preview.mathPreviewPanel.cursor.enabled": {
"scope": "window",
"type": "boolean",
"default": false,
"description": "Render cursor markers and selection range markers in the math preview panel."
},
"latex-math-preview.mathPreviewPanel.cursor.symbol": {
"scope": "window",
"type": "string",
"default": "\\!{|}\\!",
"description": "Cursor symbol inserted into rendered TeX in the math preview panel."
},
"latex-math-preview.mathPreviewPanel.cursor.color": {
"scope": "window",
"type": "string",
"default": "auto",
"enum": [
"auto",
"black",
"blue",
"brown",
"cyan",
"darkgray",
"gray",
"green",
"lightgray",
"lime",
"magenta",
"olive",
"orange",
"pink",
"purple",
"red",
"teal",
"violet",
"white",
"yellow"
],
"description": "The color of cursor and selection markers in the math preview panel."
},
"latex-math-preview.mathPreviewPanel.selection.startSymbol": {
"scope": "window",
"type": "string",
"default": "\\!\\{\\!",
"description": "Selection start symbol inserted into rendered TeX in the math preview panel."
},
"latex-math-preview.mathPreviewPanel.selection.endSymbol": {
"scope": "window",
"type": "string",
"default": "\\!\\}\\!",
"description": "Selection end symbol inserted into rendered TeX in the math preview panel."
},
"latex-math-preview.mathPreviewPanel.editorGroup": {
"scope": "window",
"type": "string",
"default": "below",
"enum": [
"current",
"left",
"right",
"above",
"below"
],
"description": "The editor group in which to open the math preview panel."
},
"latex-math-preview.mathPreviewPanel.maxLines": {
"scope": "window",
"type": "number",
"default": 20,
"description": "Maximum number of lines to scan upward when resolving surrounding math environments for the math preview panel."
},
"latex-math-preview.mathPreviewPanel.scale": {
"scope": "window",
"type": "number",
"default": 1,
"description": "Scaling factor for rendered math in the preview panel."
},
"latex-math-preview.mathJax.packages": {
"scope": "window",
"type": "array",
"items": {
"type": "string"
},
"default": [],
"description": "Additional MathJax TeX packages to enable for rendering. These are appended to the extension's built-in package set."
},
"latex-math-preview.mathJax.macros": {
"scope": "window",
"type": "string",
"default": "",
"description": "Raw TeX macro definitions supported by MathJax, such as \\newcommand or \\DeclareMathOperator."
}
}
}
},
"scripts": {
"compile": "node ./esbuild.mjs",
"compile:tests": "tsc -p ./tsconfig.test.json",
"watch": "node ./esbuild.mjs --watch",
"package:vsix": "npm run compile && vsce package",
"test": "npm run test:unit && npm run test:integration",
"test:unit": "vitest run",
"pretest:integration": "npm run compile && npm run compile:tests",
"test:integration": "node ./out/test/runTest.js"
},
"dependencies": {
"mathjax-full": "^3.2.2",
"workerpool": "^10.0.1"
},
"overrides": {
"mocha": {
"diff": "^8.0.4",
"serialize-javascript": "^7.0.5"
}
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "^24.5.2",
"@types/vscode": "^1.90.0",
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.7.1",
"esbuild": "^0.27.4",
"mocha": "^11.7.5",
"typescript": "^5.9.2",
"vitest": "^3.2.4"
}
}