forked from goessner/mdmath
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
186 lines (186 loc) · 4.76 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
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
183
184
185
186
{
"name": "mdmath",
"displayName": "Markdown+Math",
"description": "LaTeX Math for Markdown ... with macros and more",
"icon": "img/icon.png",
"version": "2.7.5",
"author": "Stefan Goessner",
"publisher": "goessner",
"keywords": [
"TeX",
"LaTeX",
"KaTeX",
"markdown",
"markdown-it",
"math",
"multi-root ready"
],
"galleryBanner": {
"color": "#efefef",
"theme": "light"
},
"homepage": "https://github.com/goessner/mdmath/blob/master/readme.md",
"repository": {
"type": "git",
"url": "https://github.com/goessner/mdmath.git"
},
"bugs": {
"url": "https://github.com/goessner/mdmath/issues"
},
"license": "MIT",
"engines": {
"vscode": "^1.45.0"
},
"categories": [
"Programming Languages",
"Other"
],
"activationEvents": [
"onLanguage:markdown"
],
"contributes": {
"configuration": {
"title": "mdmath",
"properties": {
"mdmath.delimiters": {
"type": "string",
"default": "dollars",
"description": "Math formula delimiters."
},
"mdmath.theme": {
"type": "string",
"default": "default",
"enum": [
"default",
"minimal",
"publication"
],
"description": "Choose from available themes ['default','minimal','publication']."
},
"mdmath.macros": {
"type": "object",
"default": {},
"description": "TeX macros definition."
},
"mdmath.macroFile": {
"type": "string",
"default": "",
"description": "Absolute path of JSON file containing TeX macro definitions."
},
"mdmath.outerspace": {
"type": "boolean",
"default": false,
"description": "Enclose inline math `$` pair with space characters, as a guard against misinterpretation of single `$`'s in normal markdown (default: `false` for backward compatibility)."
},
"mdmath.katexoptions": {
"type": "object",
"default": {},
"description": "Katex options definition. (see https://katex.org/docs/options.html)"
},
"mdmath.silent": {
"type": "boolean",
"default": false,
"description": "Supress user notification while saving HTML file."
},
"mdmath.savePath": {
"type": "string",
"default": "./${file.name}.html",
"description": "Relative path to save generated HTML files. \nPaths are interpreted relative to the source file with the workspace folder as the root directory. \nYou can use the variables ${file.name} and ${file.ext}."
},
"mdmath.autosave": {
"type": "boolean",
"default": false,
"description": "Automatically run the 'Save Markdown+Math to HTML' command when a markdown file is changed."
},
"mdmath.style": {
"type": "string",
"default": "",
"description": "Absolute path to a css file for styling exported HTML code. Note: On windows use a 'file://' before the volume letter as in 'file://c:/myfolder/mystyle.css' for local files."
}
}
},
"markdown.previewStyles": [
"./node_modules/katex/dist/katex.min.css",
"./node_modules/markdown-it-texmath/css/texmath.css",
"./css/vscode-mdmath.css"
],
"markdown.markdownItPlugins": true,
"commands": [
{
"command": "extension.clipToHtml",
"title": "Clip Markdown+Math to HTML",
"category": "Markdown"
},
{
"command": "extension.saveToHtml",
"title": "Save Markdown+Math to HTML",
"category": "Markdown"
},
{
"command": "extension.insertToC",
"title": "Insert Table of Content",
"category": "Markdown"
}
],
"keybindings": [
{
"key": "ctrl+K .",
"command": "extension.clipToHtml",
"when": "editorTextFocus"
},
{
"key": "ctrl+K ,",
"command": "extension.saveToHtml",
"when": "editorTextFocus"
},
{
"key": "ctrl+K T",
"command": "extension.insertToC",
"when": "editorTextFocus"
}
],
"languages": [
{
"id": "source.markdown.math",
"extensions": [
"md"
]
}
],
"grammars": [
{
"injectTo": [
"text.html.markdown"
],
"scopeName": "markdown.math",
"path": "./syntaxes/dollars.json"
}
]
},
"main": "./extension",
"scripts": {
"esbuild-base": "esbuild ./extension.js --bundle --outfile=out/extension.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run -S esbuild-base -- --sourcemap",
"esbuild-watch": "npm run -S esbuild-base -- --sourcemap --watch"
},
"devDependencies": {
"@types/vscode": "^1.45.0",
"esbuild": "^0.12.6"
},
"dependencies": {
"argparse": "^1.0.9",
"commander": "^2.20.3",
"entities": "^2.0.3",
"katex": "^0.13.11",
"linkify-it": "^2.2.0",
"markdown-it": "^12.0.6",
"markdown-it-texmath": "^0.9.0",
"mdurl": "^1.0.1",
"uc.micro": "^1.0.6"
},
"__metadata": {
"id": "1d66faf4-3266-4fce-b7c9-df60aecf496d",
"publisherDisplayName": "goessner",
"publisherId": "b49843a2-25e3-49f0-a037-519a07c3178d"
}
}