@vscode/markdown-editor 0.0.2-118 → 0.0.2-119
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/README.md +23 -4
- package/dist/index.js +122 -119
- package/dist/index.js.map +1 -1
- package/dist/web-editors.js +2 -2
- package/dist/web-editors.js.map +1 -1
- package/package.json +2 -2
- package/src/view/editor.css +11 -6
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-119",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
"vitest": "^4.1.0",
|
|
121
121
|
"zod": "^4.3.6"
|
|
122
122
|
},
|
|
123
|
-
"gitHead": "
|
|
123
|
+
"gitHead": "efe1bb2fbeea60dd3b22314db182c8f4fdc2ea92"
|
|
124
124
|
}
|
package/src/view/editor.css
CHANGED
|
@@ -67,25 +67,30 @@
|
|
|
67
67
|
* edge, independent of the first block's theme margins.
|
|
68
68
|
*/
|
|
69
69
|
.md-editor-content {
|
|
70
|
-
--md-editor-min-inline-padding:
|
|
71
|
-
--md-editor-content-inline-start-padding:
|
|
70
|
+
--md-editor-min-inline-padding: 8px;
|
|
71
|
+
--md-editor-content-inline-start-padding: var(--md-editor-min-inline-padding);
|
|
72
72
|
--md-editor-content-inline-end-padding: var(--md-editor-content-inline-start-padding);
|
|
73
73
|
position: relative;
|
|
74
74
|
display: flow-root;
|
|
75
75
|
margin-inline: auto;
|
|
76
|
-
padding-block:
|
|
76
|
+
padding-block: 32px 0;
|
|
77
77
|
padding-inline: var(--md-editor-content-inline-start-padding) var(--md-editor-content-inline-end-padding);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
+
.md-editor-medium-margins > .md-editor-content {
|
|
81
|
+
--md-editor-content-inline-start-padding: max(var(--md-editor-min-inline-padding), 48px);
|
|
82
|
+
}
|
|
83
|
+
|
|
80
84
|
.md-editor-content:has(> .md-document > .md-heading) {
|
|
81
|
-
--md-editor-min-inline-padding:
|
|
85
|
+
--md-editor-min-inline-padding: 2em;
|
|
82
86
|
}
|
|
83
87
|
|
|
84
88
|
.md-editor-content>.md-document :is(.md-heading, .md-paragraph) {
|
|
85
89
|
overflow-wrap: anywhere;
|
|
86
90
|
}
|
|
87
91
|
|
|
88
|
-
.md-editor .md-document >
|
|
92
|
+
.md-editor .md-document > :first-child,
|
|
93
|
+
.md-editor .md-blockquote > :nth-child(1 of .md-block) {
|
|
89
94
|
margin-block-start: 0;
|
|
90
95
|
}
|
|
91
96
|
|
|
@@ -1266,7 +1271,7 @@ pre.md-unhandled-scroll.md-code-block {
|
|
|
1266
1271
|
display: inline-flex;
|
|
1267
1272
|
align-items: center;
|
|
1268
1273
|
justify-content: flex-end;
|
|
1269
|
-
transform: scale(0.85);
|
|
1274
|
+
transform: scale(var(--md-heading-marker-scale, 0.85));
|
|
1270
1275
|
transform-origin: right center;
|
|
1271
1276
|
}
|
|
1272
1277
|
|