@vscode/markdown-editor 0.0.2-54 → 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 +36 -4
- package/dist/index.js +2486 -2395
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- 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": {
|
|
@@ -115,5 +115,5 @@
|
|
|
115
115
|
"vitest": "^4.1.0",
|
|
116
116
|
"zod": "^4.3.6"
|
|
117
117
|
},
|
|
118
|
-
"gitHead": "
|
|
118
|
+
"gitHead": "bbdb709645eb76093b5b75be7e5faaeb67c1b900"
|
|
119
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,
|