Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
206 lines (206 loc) Β· 8.17 KB
/
Copy pathpackage.json
File metadata and controls
206 lines (206 loc) Β· 8.17 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
{
"name": "github-style-markdown-preview",
"displayName": "GitHub Style Markdown Preview",
"description": "View Markdown files like on GitHub with dark/light mode toggle, auto-update, browser preview, and customizable settings.",
"version": "0.0.7",
"publisher": "MCCProgrammer",
"author": {
"name": "MCCProgrammer",
"email": "contact@mccprogrammer.com"
},
"sponsor": {
"url": "https://ko-fi.com/mccprogrammer"
},
"bugs": {
"url": "https://github.com/MCCProgrammer/github-style-markdown-preview/issues"
},
"homepage": "https://github.com/MCCProgrammer/github-style-markdown-preview#readme",
"icon": "icon.png",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other",
"Programming Languages",
"Visualization"
],
"keywords": [
"markdown",
"github",
"preview",
"readme",
"documentation",
"gfm",
"emoji"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/MCCProgrammer/github-style-markdown-preview"
},
"activationEvents": [],
"browser": "./dist/web/extension.js",
"contributes": {
"commands": [
{
"command": "github-style-markdown-preview.openMarkDown",
"title": "Open Markdown Preview",
"icon": "$(preview)",
"category": "GitHub Style Markdown Preview"
},
{
"command": "github-style-markdown-preview.toggleTheme",
"title": "Toggle Preview Theme",
"icon": "$(color-mode)",
"category": "GitHub Style Markdown Preview"
}
],
"keybindings": [
{
"command": "github-style-markdown-preview.openMarkDown",
"key": "ctrl+alt+p",
"mac": "cmd+opt+p",
"when": "editorTextFocus"
},
{
"command": "github-style-markdown-preview.toggleTheme",
"key": "ctrl+shift+t",
"mac": "cmd+shift+t",
"when": "activeWebviewPanelId == 'githubReadmePreview'"
}
],
"menus": {
"editor/title": [
{
"command": "github-style-markdown-preview.openMarkDown",
"when": "editorLangId == markdown && !isInDiffEditor",
"group": "navigation"
}
],
"webview/title": [
{
"command": "github-style-markdown-preview.toggleTheme",
"when": "webviewId == githubReadmePreview",
"group": "navigation"
}
]
},
"configuration": {
"title": "GitHub Style Markdown Preview",
"properties": {
"github-style-markdown-preview.autoOpen": {
"type": "boolean",
"default": false,
"description": "Automatically open preview when a markdown file is opened"
},
"github-style-markdown-preview.updateDelay": {
"type": "number",
"default": 300,
"description": "Delay in milliseconds before updating preview after editing (0 = instant update)",
"minimum": 0,
"maximum": 2000
},
"github-style-markdown-preview.supportedFiles": {
"type": "array",
"default": [
"*.md"
],
"description": "File patterns to support (e.g., ['*.md', 'README*', '*.markdown'])",
"items": {
"type": "string"
}
},
"github-style-markdown-preview.protectPreviewColumn": {
"type": "boolean",
"default": false,
"description": "Protect the preview column from other files. When enabled, the preview uses a dedicated column and other files opened in that column will be moved to the first column."
},
"github-style-markdown-preview.openInBrowser": {
"type": "boolean",
"default": false,
"description": "Open preview in external browser instead of VS Code webview panel. The preview will update automatically as you edit the file."
},
"github-style-markdown-preview.maxWidth": {
"type": [
"number",
"string"
],
"default": 980,
"description": "Maximum width of the content in the preview (in pixels). Use 'auto' for full width. Default GitHub width is 980px.",
"markdownDescription": "Maximum width of the content in the preview (in pixels). Use `auto` for full width. **Default GitHub width is 980px.**"
},
"github-style-markdown-preview.enableEmoji": {
"type": "boolean",
"default": true,
"description": "Enable emoji rendering (e.g., :smile:, :heart:). Applies to both IDE and browser previews."
},
"github-style-markdown-preview.enableBreaks": {
"type": "boolean",
"default": false,
"description": "Convert single line breaks to HTML line breaks (similar to GitHub behavior). Applies to both IDE and browser previews."
},
"github-style-markdown-preview.closeOnFileClose": {
"type": "boolean",
"default": true,
"description": "Automatically close preview when the markdown file is closed (IDE preview only)."
},
"github-style-markdown-preview.focusEditorAfterOpen": {
"type": "boolean",
"default": true,
"description": "Focus the editor after opening the preview, allowing you to continue editing (IDE preview only)."
},
"github-style-markdown-preview.enableMath": {
"type": "boolean",
"default": false,
"description": "Enable math formula rendering with KaTeX (LaTeX/MathJax syntax). Supports inline math: $formula$ or \\(formula\\), and display math: $$formula$$ or \\[formula\\]. Applies to IDE preview only."
},
"github-style-markdown-preview.enableExport": {
"type": "boolean",
"default": false,
"description": "Show export button in preview to save rendered preview as HTML file. Applies to IDE preview only."
},
"github-style-markdown-preview.openPreviewKeybinding": {
"type": "string",
"default": "ctrl+alt+p",
"description": "β οΈ INFORMATIONAL ONLY: Default keyboard shortcut is 'Ctrl+Alt+P' (or 'Cmd+Opt+P' on Mac). To customize, go to File > Preferences > Keyboard Shortcuts (Ctrl+K Ctrl+S) and search for 'Open Markdown Preview'. This setting does not change the actual keybinding - it's for reference only.",
"markdownDescription": "β οΈ **INFORMATIONAL ONLY**: Default keyboard shortcut is `Ctrl+Alt+P` (or `Cmd+Opt+P` on Mac). **To customize:** Go to `File > Preferences > Keyboard Shortcuts` (or `Ctrl+K Ctrl+S`) and search for `Open Markdown Preview`. **This setting does not change the actual keybinding** - it's for reference only."
}
}
}
},
"scripts": {
"test": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=. --extensionTestsPath=dist/web/test/suite/extensionTests.js",
"pretest": "npm run compile-web",
"vscode:prepublish": "npm run package-web",
"compile-web": "npm run check-types && npm run lint && node esbuild.js",
"watch-web": "npm-run-all -p watch-web:*",
"watch-web:esbuild": "node esbuild.js --watch",
"watch-web:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package-web": "npm run check-types && npm run lint && node esbuild.js --production",
"check-types": "tsc --noEmit",
"lint": "eslint src",
"run-in-browser": "vscode-test-web --browserType=chromium --extensionDevelopmentPath=. ."
},
"devDependencies": {
"@esbuild-plugins/node-globals-polyfill": "^0.2.3",
"@types/assert": "^1.5.11",
"@types/mocha": "^10.0.10",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^8.45.0",
"@typescript-eslint/parser": "^8.45.0",
"@vscode/test-web": "^0.0.74",
"assert": "^2.1.0",
"esbuild": "^0.25.10",
"eslint": "^9.36.0",
"glob": "^11.0.3",
"mocha": "^11.7.4",
"npm-run-all": "^4.1.5",
"typescript": "^5.9.3"
},
"dependencies": {
"@types/markdown-it": "^14.1.2",
"github-markdown-css": "^5.8.1",
"markdown-it": "^14.1.0",
"markdown-it-emoji": "^3.0.0"
}
}