Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
221 lines (221 loc) · 7.24 KB
/
Copy pathpackage.json
File metadata and controls
221 lines (221 loc) · 7.24 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
{
"name": "markdown-docs",
"displayName": "Markdown Docs & Comments",
"description": "WYSIWYG Markdown Editor with Inline Commenting (great for working with AI!)",
"version": "1.3.1",
"icon": "media/icon.png",
"publisher": "jonnyasmar",
"repository": {
"type": "git",
"url": "https://github.com/jonnyasmar/markdown-docs"
},
"sponsor": {
"url": "https://buymeacoffee.com/jonnygravity"
},
"engines": {
"vscode": "^1.74.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onCommand:markdown-docs.openEditor",
"onCommand:markdown-docs.openStandalone",
"onWebviewPanel:markdown-docs",
"onLanguage:markdown"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "markdown-docs.openEditor",
"title": "Open with Markdown Docs",
"category": "Markdown Docs"
},
{
"command": "markdown-docs.openStandalone",
"title": "New Markdown Docs File",
"category": "Markdown Docs"
},
{
"command": "markdown-docs.openWithTextEditor",
"title": "Open with Text Editor",
"category": "Markdown Docs"
}
],
"customEditors": [
{
"viewType": "markdown-docs.editor",
"displayName": "Markdown Docs",
"selector": [
{
"filenamePattern": "file:/**/*.md"
},
{
"scheme": "untitled",
"pattern": "**/*.md"
}
],
"priority": "default"
}
],
"menus": {
"explorer/context": [
{
"when": "resourceLangId == markdown",
"command": "markdown-docs.openEditor",
"group": "navigation"
},
{
"when": "resourceLangId == markdown",
"command": "markdown-docs.openWithTextEditor",
"group": "navigation"
}
],
"editor/title/context": [
{
"when": "resourceLangId == markdown",
"command": "markdown-docs.openEditor",
"group": "1_open"
},
{
"when": "resourceLangId == markdown",
"command": "markdown-docs.openWithTextEditor",
"group": "1_open"
}
]
},
"keybindings": [
{
"key": "ctrl+shift+alt+m",
"command": "markdown-docs.openEditor",
"mac": "cmd+shift+alt+m",
"when": "editorTextFocus && editorLangId == markdown"
}
],
"configuration": {
"title": "Markdown Docs",
"properties": {
"markdown-docs.defaultFont": {
"type": "string",
"default": "Default",
"description": "Default font family for the markdown editor",
"enum": [
"Default",
"Arial",
"Times New Roman",
"Roboto",
"Georgia",
"Calibri",
"Garamond",
"Book Antiqua",
"Courier New",
"Open Sans",
"Lato",
"Montserrat",
"Source Sans Pro"
]
},
"markdown-docs.fontSize": {
"type": "number",
"default": 14,
"minimum": 8,
"maximum": 48,
"description": "Default font size for the markdown editor (in pixels)"
},
"markdown-docs.textAlign": {
"type": "string",
"default": "left",
"description": "Default text alignment for the markdown editor",
"enum": [
"left",
"center",
"right",
"justify"
]
},
"markdown-docs.bookView": {
"type": "boolean",
"default": false,
"description": "Enable book view mode with centered layout and padding"
},
"markdown-docs.bookViewWidth": {
"type": "string",
"default": "5.5in",
"description": "Width of the content area in book view mode (CSS units: px, em, rem, in, cm, etc.)"
},
"markdown-docs.bookViewMargin": {
"type": "string",
"default": "0.5in",
"description": "Horizontal margins in book view mode (CSS units: px, em, rem, in, cm, etc.)"
},
"markdown-docs.autoSave": {
"type": "boolean",
"default": true,
"description": "Enable or disable automatic saving of changes"
},
"markdown-docs.imagePasteFolder": {
"type": "string",
"default": "media",
"description": "Folder (relative to the current document) where pasted images are saved. Set to '' to save next to the document."
}
}
}
},
"scripts": {
"vscode:prepublish": "npm run package",
"clean": "rm -rf dist",
"compile": "npm run clean && npm run compile:webview && rspack build -c rspack.config.js",
"compile:webview": "cd webview-ui && npm run build",
"watch": "rspack build -c rspack.config.js --watch",
"package": "npm run clean && npm run compile:webview && rspack build -c rspack.config.js --mode production --devtool hidden-source-map",
"build:webpack": "npm run clean && npm run compile:webview && webpack --config webpack.config.js",
"build:rspack": "npm run clean && npm run compile:webview && rspack build -c rspack.config.js",
"compile-tests": "tsc -p . --outDir out",
"watch-tests": "tsc -p . -w --outDir out",
"pretest": "npm run compile-tests && npm run compile && npm run lint",
"lint": "eslint src --ext ts && cd webview-ui && eslint src --ext ts,tsx && cd .. && npm run prettier:check",
"lint:fix": "eslint src --ext ts --fix && cd webview-ui && eslint src --ext ts,tsx --fix && cd .. && npm run prettier:write",
"lint:fix:quiet": "eslint src --ext ts --fix --quiet && cd webview-ui && eslint src --ext ts,tsx --fix --quiet && cd .. && npm run prettier:write",
"prettier:check": "prettier --check 'src/**/*.{ts,tsx,js,jsx,json,md}' 'webview-ui/src/**/*.{ts,tsx,js,jsx,json,md}'",
"prettier:write": "prettier --write 'src/**/*.{ts,tsx,js,jsx,json,md}' 'webview-ui/src/**/*.{ts,tsx,js,jsx,json,md}'",
"format": "npm run prettier:write",
"typecheck": "tsc --noEmit --skipLibCheck && cd webview-ui && tsc --noEmit --skipLibCheck",
"typecheck:main": "tsc --noEmit",
"typecheck:webview": "cd webview-ui && tsc --noEmit",
"test": "vscode-test"
},
"devDependencies": {
"@rspack/cli": "^1.5.1",
"@rspack/core": "^1.5.1",
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
"@types/mocha": "^10.0.1",
"@types/node": "16.x",
"@types/uuid": "^10.0.0",
"@types/vscode": "^1.74.0",
"@types/yaml": "^1.9.6",
"@typescript-eslint/eslint-plugin": "^5.45.0",
"@typescript-eslint/parser": "^5.45.0",
"@vscode/test-cli": "^0.0.1",
"@vscode/test-electron": "^2.2.0",
"eslint": "^8.28.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-prettier": "^5.5.4",
"eslint-plugin-react-hooks": "^5.2.0",
"prettier": "^3.6.2",
"ts-loader": "^9.4.1",
"typescript": "^4.9.4",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.0"
},
"dependencies": {
"js-yaml": "^4.1.0",
"lexical": "^0.35.0",
"mdast-util-directive": "^3.1.0",
"mdast-util-frontmatter": "^2.0.1",
"micromark-extension-frontmatter": "^2.0.0",
"node-emoji": "^2.2.0",
"uuid": "^11.1.0",
"yaml": "^2.8.1"
}
}