@vscode/markdown-editor 0.0.2-53 → 0.0.2-55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +40 -5
- package/dist/index.js +2668 -2573
- package/dist/index.js.map +1 -1
- package/dist/web-editors.d.ts +0 -32
- package/dist/web-editors.js +899 -1009
- package/dist/web-editors.js.map +1 -1
- package/package.json +7 -4
- package/src/view/editor.css +36 -0
- package/src/view/themes/vscode-default.css +4 -0
- package/src/view/themes/vscode-github.css +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vscode/markdown-editor",
|
|
3
|
-
"version": "0.0.2-
|
|
3
|
+
"version": "0.0.2-55",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -72,12 +72,15 @@
|
|
|
72
72
|
"scripts": {
|
|
73
73
|
"build": "pnpm run build:dependencies && vite build",
|
|
74
74
|
"build:dependencies": "pnpm --filter @vscode/hubrpc build && pnpm --filter @vscode/web-editors build",
|
|
75
|
-
"build:
|
|
75
|
+
"build:fixture-dependencies": "pnpm run build:dependencies && pnpm --filter @vscode/component-explorer-vite-plugin... build && pnpm --filter @vscode/sample-web-editor build",
|
|
76
|
+
"build:fixtures": "vite build --config vite.fixture.config.ts --outDir dist-explorer --emptyOutDir",
|
|
77
|
+
"build:explorer": "pnpm run build:fixture-dependencies && pnpm run build:fixtures",
|
|
78
|
+
"serve:e2e-fixtures": "vite preview --config vite.fixture.config.ts --outDir dist-explorer --port 5179 --strictPort",
|
|
76
79
|
"dev": "vite build --watch",
|
|
77
80
|
"pack": "pnpm run build && pnpm pack",
|
|
78
81
|
"test": "vitest --run",
|
|
79
82
|
"test:watch": "vitest",
|
|
80
|
-
"test:e2e": "playwright test"
|
|
83
|
+
"test:e2e": "pnpm run build:fixture-dependencies && pnpm run build:fixtures && playwright test"
|
|
81
84
|
},
|
|
82
85
|
"dependencies": {
|
|
83
86
|
"@vscode/codicons": "^0.0.45",
|
|
@@ -112,5 +115,5 @@
|
|
|
112
115
|
"vitest": "^4.1.0",
|
|
113
116
|
"zod": "^4.3.6"
|
|
114
117
|
},
|
|
115
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "bbdb709645eb76093b5b75be7e5faaeb67c1b900"
|
|
116
119
|
}
|
package/src/view/editor.css
CHANGED
|
@@ -205,6 +205,42 @@ pre.md-unhandled-scroll.md-code-block {
|
|
|
205
205
|
border-radius: 4px;
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
+
/*
|
|
209
|
+
* Complete block HTML comments are authoring metadata, not unsupported-syntax
|
|
210
|
+
* warnings. Keep them source-identifiable but quiet while reading, and reveal
|
|
211
|
+
* their exact whitespace when the block becomes active.
|
|
212
|
+
*/
|
|
213
|
+
.md-html-comment {
|
|
214
|
+
margin: 0.125em 0 0.25em;
|
|
215
|
+
padding: 0.125em 0;
|
|
216
|
+
overflow: hidden;
|
|
217
|
+
color: var(--md-html-comment-foreground, #6e7378);
|
|
218
|
+
font-family: var(--md-html-comment-font-family, 'Cascadia Code', 'Fira Code', monospace);
|
|
219
|
+
font-size: 0.85em;
|
|
220
|
+
line-height: 1.5;
|
|
221
|
+
text-overflow: ellipsis;
|
|
222
|
+
white-space: nowrap;
|
|
223
|
+
transition: color 80ms ease-out;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
.md-html-comment:not(.md-html-comment-source):hover {
|
|
227
|
+
color: var(--md-html-comment-hover-foreground, #45494e);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.md-html-comment-source {
|
|
231
|
+
overflow: visible;
|
|
232
|
+
text-overflow: clip;
|
|
233
|
+
white-space: pre-wrap;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.md-html-comment-syntax {
|
|
237
|
+
opacity: 0.6;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.md-html-comment-source .md-html-comment-syntax {
|
|
241
|
+
opacity: 1;
|
|
242
|
+
}
|
|
243
|
+
|
|
208
244
|
/*
|
|
209
245
|
* Visible whitespace indicators, shown only in the active/source view. The real
|
|
210
246
|
* whitespace character stays in the DOM (so source ↔ DOM mapping and selection
|
|
@@ -49,6 +49,10 @@
|
|
|
49
49
|
* stays visible on dark color themes.
|
|
50
50
|
*/
|
|
51
51
|
--md-cursor-background: var(--vscode-editorCursor-foreground, #000);
|
|
52
|
+
--md-html-comment-foreground: var(--vscode-descriptionForeground, #616161);
|
|
53
|
+
--md-html-comment-hover-foreground: var(--vscode-editor-foreground, #1f2328);
|
|
54
|
+
--md-html-comment-font-family: var(--vscode-editor-font-family, ui-monospace, SFMono-Regular,
|
|
55
|
+
'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace);
|
|
52
56
|
--md-readonly-background: var(--vscode-button-secondaryBackground,
|
|
53
57
|
var(--vscode-editorWidget-background, #f3f3f3));
|
|
54
58
|
--md-readonly-background-hover: var(--vscode-button-secondaryHoverBackground,
|
|
@@ -58,6 +58,10 @@
|
|
|
58
58
|
* stays visible on dark color themes.
|
|
59
59
|
*/
|
|
60
60
|
--md-cursor-background: var(--vscode-editorCursor-foreground, #000);
|
|
61
|
+
--md-html-comment-foreground: var(--vscode-descriptionForeground, #59636e);
|
|
62
|
+
--md-html-comment-hover-foreground: var(--vscode-editor-foreground, #1f2328);
|
|
63
|
+
--md-html-comment-font-family: var(--vscode-editor-font-family, ui-monospace, SFMono-Regular,
|
|
64
|
+
'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace);
|
|
61
65
|
--md-readonly-background: var(--vscode-button-secondaryBackground,
|
|
62
66
|
var(--vscode-editorWidget-background, #f3f3f3));
|
|
63
67
|
--md-readonly-background-hover: var(--vscode-button-secondaryHoverBackground,
|