@vscode/markdown-editor 0.0.2-57 → 0.0.2-59

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vscode/markdown-editor",
3
- "version": "0.0.2-57",
3
+ "version": "0.0.2-59",
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": "d0c8ebb80a677c782f95ef408db654196fec7b9d"
118
+ "gitHead": "7f2b1a7551fb6b4c3147b37a0adfc24523c65049"
119
119
  }
@@ -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
- * The left padding the `>` gutter hangs in (matches padding-left: 1em at
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
  }
@@ -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 10px;
156
- /*
157
- * The left padding the `>` gutter hangs in (matches padding-left: 10px).
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;
@@ -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
- * The left padding the `>` gutter hangs in (matches padding-left: 1em at
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
  }