@vscode/markdown-editor 0.0.2-56 → 0.0.2-58
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 +35 -23
- package/dist/index.js +1208 -1081
- package/dist/index.js.map +1 -1
- package/dist/web-editors.js.map +1 -1
- package/package.json +2 -2
- package/src/view/editor.css +28 -1
- package/src/view/themes/default.css +1 -1
- package/src/view/themes/github.css +3 -9
- package/src/view/themes/vscode-default.css +4 -9
- package/src/view/themes/vscode-github.css +3 -9
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-58",
|
|
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": "eadad30dc54a1d944a11c9701b859891a425380f"
|
|
119
119
|
}
|
package/src/view/editor.css
CHANGED
|
@@ -622,9 +622,26 @@ pre.md-unhandled-scroll.md-code-block {
|
|
|
622
622
|
|
|
623
623
|
.md-blockquote>.md-marker-blockQuoteMarker {
|
|
624
624
|
position: absolute;
|
|
625
|
-
right: calc(100% - var(--md-blockquote-pad, 0px));
|
|
625
|
+
right: calc(100% - var(--md-blockquote-pad, 0px) - 1ch);
|
|
626
626
|
top: auto;
|
|
627
|
+
/*
|
|
628
|
+
* Reserve the optional-space column so adding it cannot move the `>` glyph,
|
|
629
|
+
* then shift and scale every active quote marker consistently to leave a
|
|
630
|
+
* virtual gap before body text without consuming source width. These tuned
|
|
631
|
+
* properties are shared by ordinary and marker-only quote lines.
|
|
632
|
+
*/
|
|
633
|
+
--md-blockquote-marker-shift: -0.18ch;
|
|
634
|
+
--md-blockquote-marker-scale: 0.9;
|
|
635
|
+
display: inline-flex;
|
|
636
|
+
min-width: 2ch;
|
|
637
|
+
font-size: inherit;
|
|
638
|
+
line-height: inherit;
|
|
639
|
+
height: 1lh;
|
|
640
|
+
align-items: center;
|
|
641
|
+
text-align: left;
|
|
627
642
|
white-space: pre;
|
|
643
|
+
transform: translateX(var(--md-blockquote-marker-shift)) scale(var(--md-blockquote-marker-scale));
|
|
644
|
+
transform-origin: left center;
|
|
628
645
|
}
|
|
629
646
|
|
|
630
647
|
/* Inactive: gone entirely (the gutter is empty, the text stays put). */
|
|
@@ -632,6 +649,16 @@ pre.md-unhandled-scroll.md-code-block {
|
|
|
632
649
|
display: none;
|
|
633
650
|
}
|
|
634
651
|
|
|
652
|
+
/* Collapsed block-gap newlines still need one flow box per marker-only line. */
|
|
653
|
+
.md-blockquote-line-anchor {
|
|
654
|
+
display: block;
|
|
655
|
+
}
|
|
656
|
+
|
|
657
|
+
/* A trailing marker-only source line follows the preceding quoted line directly. */
|
|
658
|
+
.md-blockquote-marker-only-line>.md-paragraph:last-of-type {
|
|
659
|
+
margin-bottom: 0;
|
|
660
|
+
}
|
|
661
|
+
|
|
635
662
|
/* Code/math blocks scroll horizontally; their look is theme-defined. */
|
|
636
663
|
.md-code-block {
|
|
637
664
|
overflow-x: auto;
|
|
@@ -67,14 +67,8 @@
|
|
|
67
67
|
.github-markdown-theme .md-blockquote {
|
|
68
68
|
margin: 0 0 16px 0;
|
|
69
69
|
padding: 0 1em;
|
|
70
|
-
/*
|
|
71
|
-
|
|
72
|
-
* the 16px blockquote font). Must be an absolute length, not `1em`: the
|
|
73
|
-
* marker positions itself with this var inside its own (smaller, 0.85em)
|
|
74
|
-
* font context, so an `em` value would resolve against the marker's
|
|
75
|
-
* font-size and pull the `>` ~2px out of alignment with the text.
|
|
76
|
-
*/
|
|
77
|
-
--md-blockquote-pad: 16px;
|
|
70
|
+
/* Matches padding-left; `em` is safe because shared marker geometry inherits font size. */
|
|
71
|
+
--md-blockquote-pad: 1em;
|
|
78
72
|
color: #59636e;
|
|
79
73
|
border-left: 0.25em solid #d1d9e0;
|
|
80
74
|
}
|
|
@@ -121,7 +115,7 @@
|
|
|
121
115
|
.github-markdown-theme .md-code-block {
|
|
122
116
|
margin-top: 0;
|
|
123
117
|
margin-bottom: 16px;
|
|
124
|
-
padding:
|
|
118
|
+
padding: 8px 12px;
|
|
125
119
|
font-size: 85%;
|
|
126
120
|
line-height: 1.45;
|
|
127
121
|
background-color: #f6f8fa;
|
|
@@ -152,14 +152,9 @@
|
|
|
152
152
|
*/
|
|
153
153
|
.md-theme-vscode-default .md-blockquote {
|
|
154
154
|
margin: 0 0 16px 0;
|
|
155
|
-
padding: 0 16px 0
|
|
156
|
-
/*
|
|
157
|
-
|
|
158
|
-
* Must be an absolute length, not `em`: the marker positions itself with
|
|
159
|
-
* this var inside its own (smaller) font context, so an `em` value would
|
|
160
|
-
* resolve against the marker's font-size and pull the `>` out of alignment.
|
|
161
|
-
*/
|
|
162
|
-
--md-blockquote-pad: 10px;
|
|
155
|
+
padding: 0 16px 0 12px;
|
|
156
|
+
/* The left padding the `>` gutter hangs in (matches padding-left). */
|
|
157
|
+
--md-blockquote-pad: 12px;
|
|
163
158
|
background-color: var(--vscode-textBlockQuote-background, transparent);
|
|
164
159
|
border-left: 5px solid var(--vscode-textBlockQuote-border, #d1d9e0);
|
|
165
160
|
border-radius: 2px;
|
|
@@ -217,7 +212,7 @@
|
|
|
217
212
|
.md-theme-vscode-default .md-code-block {
|
|
218
213
|
margin-top: 0;
|
|
219
214
|
margin-bottom: 16px;
|
|
220
|
-
padding:
|
|
215
|
+
padding: 6px 10px;
|
|
221
216
|
line-height: 1.357;
|
|
222
217
|
background-color: var(--vscode-textCodeBlock-background, #f6f8fa);
|
|
223
218
|
border: 1px solid var(--vscode-widget-border, #d1d9e0);
|
|
@@ -156,14 +156,8 @@
|
|
|
156
156
|
.md-theme-vscode-github .md-blockquote {
|
|
157
157
|
margin: 0 0 16px 0;
|
|
158
158
|
padding: 0 1em;
|
|
159
|
-
/*
|
|
160
|
-
|
|
161
|
-
* the base font). Must be an absolute length, not `1em`: the marker
|
|
162
|
-
* positions itself with this var inside its own (smaller, 0.85em) font
|
|
163
|
-
* context, so an `em` value would resolve against the marker's font-size
|
|
164
|
-
* and pull the `>` out of alignment with the text.
|
|
165
|
-
*/
|
|
166
|
-
--md-blockquote-pad: 16px;
|
|
159
|
+
/* Matches padding-left; `em` is safe because shared marker geometry inherits font size. */
|
|
160
|
+
--md-blockquote-pad: 1em;
|
|
167
161
|
color: var(--vscode-descriptionForeground, #59636e);
|
|
168
162
|
border-left: 0.25em solid var(--vscode-textBlockQuote-border, #d1d9e0);
|
|
169
163
|
}
|
|
@@ -214,7 +208,7 @@
|
|
|
214
208
|
.md-theme-vscode-github .md-code-block {
|
|
215
209
|
margin-top: 0;
|
|
216
210
|
margin-bottom: 16px;
|
|
217
|
-
padding: 10px
|
|
211
|
+
padding: 6px 10px;
|
|
218
212
|
font-size: 85%;
|
|
219
213
|
line-height: 1.45;
|
|
220
214
|
background-color: var(--vscode-textCodeBlock-background, #f6f8fa);
|