-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
181 lines (181 loc) · 5.42 KB
/
package.json
File metadata and controls
181 lines (181 loc) · 5.42 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
{
"name": "vscode-weave-md",
"displayName": "Weave Markdown",
"description": "Preview renderer, validator, and navigation helpers for Weave documents",
"version": "0.1.0",
"publisher": "weavepage",
"license": "MIT",
"icon": "images/icon.png",
"galleryBanner": {
"color": "#1e1e2e",
"theme": "dark"
},
"repository": {
"type": "git",
"url": "https://github.com/weavepage/vscode-weave-md"
},
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Programming Languages",
"Linters",
"Other"
],
"keywords": [
"weave",
"markdown",
"preview",
"documentation"
],
"activationEvents": [
"onLanguage:markdown"
],
"main": "./out/extension.js",
"contributes": {
"commands": [
{
"command": "weave.gotoDefinition",
"title": "Weave: Go to Section Definition"
},
{
"command": "weave.peekSection",
"title": "Weave: Peek Section"
},
{
"command": "weave.showBacklinks",
"title": "Weave: Show Backlinks (1 hop)"
},
{
"command": "weave.fullConformanceCheck",
"title": "Weave: Full Conformance Check"
},
{
"command": "weave.validateWorkspace",
"title": "Weave: Validate Workspace"
},
{
"command": "weave.createNodeFromSelection",
"title": "Weave: Create Node from Selection"
}
],
"keybindings": [
{
"command": "weave.createNodeFromSelection",
"key": "ctrl+shift+n",
"mac": "cmd+shift+n",
"when": "editorHasSelection && editorLangId == markdown"
}
],
"menus": {
"editor/context": [
{
"command": "weave.createNodeFromSelection",
"when": "editorHasSelection && editorLangId == markdown",
"group": "weave"
}
]
},
"configuration": {
"title": "Weave",
"properties": {
"weave.rootFile": {
"type": "string",
"default": "main.md",
"description": "Root file for the Weave document"
},
"weave.sectionsGlob": {
"type": "string",
"default": "sections/**/*.md",
"description": "Glob pattern for section files"
},
"weave.enablePreviewEnhancements": {
"type": "boolean",
"default": true,
"description": "Enable Weave preview enhancements"
},
"weave.maxPreviewDepth": {
"type": "number",
"default": 3,
"description": "Maximum depth for nested expansions in preview"
},
"weave.peekMaxChars": {
"type": "number",
"default": 240,
"description": "Maximum characters to show in peek preview"
},
"weave.maxExpandedCharsPerRef": {
"type": "number",
"default": 12000,
"description": "Maximum characters per expanded reference"
},
"weave.maxExpandedRefsPerDoc": {
"type": "number",
"default": 50,
"description": "Maximum expanded references per document"
},
"weave.showPreviewLabels": {
"type": "boolean",
"default": true,
"description": "Show intent labels (e.g. [Sidenote], [Margin Note]) for display modes that fall back to inline"
},
"weave.strictNodeParams": {
"type": "boolean",
"default": false,
"description": "Enable strict validation for node: URLs. When enabled: unknown parameters and unknown export values are validated as warnings."
},
"weave.sidenoteMinWidth": {
"type": "number",
"default": 800,
"description": "Minimum viewport width for sidenote mode. Below this width, sidenotes and margin notes will display inline."
}
}
},
"markdown.previewScripts": [
"./out/preview/client/weavePreview.js"
],
"markdown.previewStyles": [
"./out/preview/client/weavePreview.css"
],
"markdown.markdownItPlugins": true
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && node esbuild.js && npm run copy-assets",
"check-types": "tsc --noEmit",
"copy-assets": "mkdir -p out/preview/client && cp src/preview/client/*.css out/preview/client/",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --preserveWatchOutput",
"package": "npm run check-types && node esbuild.js --production && npm run copy-assets",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"test:weave-example": "npx tsx weave-example.test.ts",
"dev": "npm run compile && npm run test:weave-example"
},
"devDependencies": {
"@types/hast": "^3.0.4",
"@types/markdown-it": "^13.0.7",
"@types/mdast": "^4.0.4",
"@types/mocha": "^10.0.6",
"@types/node": "^20.10.0",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^6.13.0",
"@typescript-eslint/parser": "^6.13.0",
"@vscode/test-electron": "^2.3.8",
"esbuild": "^0.27.2",
"eslint": "^8.54.0",
"mocha": "^10.2.0",
"npm-run-all": "^4.1.5",
"typescript": "^5.3.2"
},
"dependencies": {
"@weave-md/core": "^0.3.0-alpha.0",
"@weave-md/parse": "^0.3.0-alpha.0",
"@weave-md/validate": "^0.3.0-alpha.0",
"hast-util-to-html": "^9.0.5",
"katex": "^0.16.9",
"mdast-util-to-hast": "^13.2.1",
"yaml": "^2.3.4"
}
}