-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathpackage.json
More file actions
254 lines (254 loc) · 8.55 KB
/
package.json
File metadata and controls
254 lines (254 loc) · 8.55 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
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
{
"name": "offline-markdown-preview",
"displayName": "Offline Markdown Preview",
"description": "Offline Markdown preview for VS Code with Mermaid diagrams, KaTeX math, secure local rendering, export, scroll sync, and outline navigation.",
"version": "0.3.1",
"publisher": "bowlerr",
"author": {
"name": "Bowlerr",
"email": "cawbsprogramming@gmail.com"
},
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/Bowlerr/offline-markdown-preview.git"
},
"bugs": {
"url": "https://github.com/Bowlerr/offline-markdown-preview/issues"
},
"homepage": "https://github.com/Bowlerr/offline-markdown-preview#readme",
"icon": "images/icon.png",
"galleryBanner": {
"color": "#1e1e1e",
"theme": "dark"
},
"keywords": [
"markdown",
"markdown-preview",
"viewer",
"offline",
"secure",
"mermaid",
"katex",
"math",
"export",
"pdf",
"html",
"scroll-sync",
"outline",
"vscode",
"vscode-extension"
],
"engines": {
"vscode": "^1.90.0",
"node": ">=20.19.0 <21 || >=22.13.0 <23 || >=24"
},
"categories": [
"Visualization",
"Other",
"Debuggers",
"Data Science"
],
"activationEvents": [
"onCommand:offlineMarkdownViewer.openPreview",
"onCommand:offlineMarkdownViewer.openPreviewToSide",
"onCommand:offlineMarkdownViewer.exportHtml",
"onCommand:offlineMarkdownViewer.exportPdf",
"onCommand:offlineMarkdownViewer.configureCustomCss",
"onCommand:offlineMarkdownViewer.showRemoteImageCacheUsage",
"onCommand:offlineMarkdownViewer.clearRemoteImageCache",
"onLanguage:markdown"
],
"main": "./dist/extension/activate.js",
"contributes": {
"commands": [
{
"command": "offlineMarkdownViewer.openPreview",
"title": "Open Preview in Current Group",
"category": "Offline Markdown Preview"
},
{
"command": "offlineMarkdownViewer.openPreviewToSide",
"title": "Open Preview",
"category": "Offline Markdown Preview"
},
{
"command": "offlineMarkdownViewer.exportHtml",
"title": "Export HTML",
"category": "Offline Markdown Preview"
},
{
"command": "offlineMarkdownViewer.exportPdf",
"title": "Export PDF",
"category": "Offline Markdown Preview"
},
{
"command": "offlineMarkdownViewer.configureCustomCss",
"title": "Set Custom CSS",
"category": "Offline Markdown Preview"
},
{
"command": "offlineMarkdownViewer.showRemoteImageCacheUsage",
"title": "Show Remote Image Cache Usage",
"category": "Offline Markdown Preview"
},
{
"command": "offlineMarkdownViewer.clearRemoteImageCache",
"title": "Clear Remote Image Cache",
"category": "Offline Markdown Preview"
},
{
"command": "offlineMarkdownViewer.toggleScrollSync",
"title": "Toggle Scroll Sync",
"category": "Offline Markdown Preview"
},
{
"command": "offlineMarkdownViewer.copyHeadingLink",
"title": "Copy Heading Link",
"category": "Offline Markdown Preview"
},
{
"command": "offlineMarkdownViewer.quickPickHeading",
"title": "Quick Pick Heading",
"category": "Offline Markdown Preview"
}
],
"menus": {
"editor/title": [
{
"command": "offlineMarkdownViewer.openPreviewToSide",
"group": "navigation@20",
"when": "resourceLangId == markdown"
}
]
},
"configuration": {
"title": "Offline Markdown Preview",
"properties": {
"offlineMarkdownViewer.enableMermaid": {
"type": "boolean",
"default": true,
"description": "Enable Mermaid diagram rendering in preview (bundled locally)."
},
"offlineMarkdownViewer.enableMath": {
"type": "boolean",
"default": true,
"description": "Enable KaTeX math rendering in preview (bundled locally)."
},
"offlineMarkdownViewer.scrollSync": {
"type": "boolean",
"default": true,
"description": "Synchronize scrolling between the editor and preview."
},
"offlineMarkdownViewer.sanitizeHtml": {
"type": "boolean",
"default": true,
"description": "Sanitize rendered HTML in the webview using a strict allowlist. Turning this off is unsafe."
},
"offlineMarkdownViewer.externalLinks.confirm": {
"type": "boolean",
"default": true,
"description": "Ask for confirmation before opening external links."
},
"offlineMarkdownViewer.preview.maxImageMB": {
"type": "number",
"default": 24,
"minimum": 1,
"maximum": 100,
"description": "Maximum image size loaded into preview (megabytes)."
},
"offlineMarkdownViewer.preview.autoOpen": {
"type": "boolean",
"default": true,
"description": "Automatically open preview in the remembered preview group when a Markdown editor becomes active."
},
"offlineMarkdownViewer.preview.allowRemoteImages": {
"type": "boolean",
"default": false,
"description": "Allow loading remote http(s) images in preview. Disabled by default for offline/privacy safety."
},
"offlineMarkdownViewer.preview.useMarkdownPreviewGithubStyling": {
"type": "boolean",
"scope": "machine",
"default": false,
"description": "Load CSS from the installed bierner.markdown-preview-github-styles extension before any configured custom preview CSS."
},
"offlineMarkdownViewer.export.embedImages": {
"type": "boolean",
"default": false,
"description": "When exporting HTML, embed local images as data URIs (privacy warning shown)."
},
"offlineMarkdownViewer.performance.debounceMs": {
"type": "number",
"default": 120,
"minimum": 30,
"maximum": 1000,
"description": "Debounce delay for live preview updates."
},
"offlineMarkdownViewer.preview.globalCustomCssPath": {
"type": "string",
"scope": "machine",
"default": "",
"description": "Absolute path to a user-level .css file appended after OMV base CSS and any imported GitHub preview styling."
},
"offlineMarkdownViewer.preview.customCssPath": {
"type": "string",
"scope": "resource",
"default": "",
"description": "Workspace-relative CSS file path to append last in the preview style order (workspace/folder settings only)."
},
"offlineMarkdownViewer.preview.showFrontmatter": {
"type": "boolean",
"default": false,
"description": "Show parsed YAML frontmatter block above the rendered document."
}
}
}
},
"scripts": {
"build": "node esbuild.config.mjs",
"vscode:prepublish": "npm run build",
"watch": "node esbuild.config.mjs --watch",
"lint": "eslint src test --ext .ts",
"format": "prettier --write .",
"test": "npm run test:unit",
"test:unit": "vitest run --config vitest.config.ts",
"test:e2e": "node ./test/e2e/runVscodeE2E.mjs",
"package": "vsce package --no-dependencies --no-yarn",
"release": "vsce publish --no-yarn",
"release:openvsx": "npx ovsx publish",
"release:all": "npm run release && npm run release:openvsx"
},
"dependencies": {
"@types/markdown-it": "*",
"dompurify": "^3.2.6",
"gray-matter": "^4.0.3",
"katex": "^0.16.22",
"markdown-it": "^14.1.0",
"markdown-it-anchor": "^9.2.0",
"markdown-it-deflist": "^2.1.0",
"markdown-it-footnote": "^4.0.0",
"markdown-it-task-lists": "^2.1.1",
"mermaid": "^11.12.0",
"prismjs": "^1.30.0",
"zod": "^3.25.76"
},
"devDependencies": {
"@playwright/test": "^1.55.0",
"@types/node": "^22.15.30",
"@types/prismjs": "^1.26.5",
"@types/vscode": "^1.90.0",
"@typescript-eslint/eslint-plugin": "^8.34.0",
"@typescript-eslint/parser": "^8.34.0",
"@vscode/vsce": "^3.0.0",
"@vscode/test-electron": "^2.5.2",
"esbuild": "^0.25.5",
"eslint": "^8.57.0",
"eslint-config-prettier": "^10.1.5",
"eslint-plugin-import": "^2.32.0",
"prettier": "^3.5.3",
"typescript": "^5.8.3",
"vitest": "^2.1.9"
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}