@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 CHANGED
@@ -75,6 +75,10 @@ character is typed. These narrow recognition deviations avoid structural jumps
75
75
  while typing or deleting, without depending on editing history. The reading
76
76
  preset leaves these extensions off.
77
77
 
78
+ Editing presentation recognizes empty task checkboxes (`[ ]`, `[x]`, and `[]`)
79
+ at end-of-file as well as before whitespace or a newline. Enter exits an empty
80
+ task just like an empty list item; a nested empty task first outdents.
81
+
78
82
  In editing presentation, Enter continues complete list items and exits/outdents
79
83
  empty ones. Elsewhere it inserts a single newline without creating a virtual
80
84
  paragraph. Arrow Down also stays within
@@ -253,14 +257,29 @@ syntax highlighting, without changing reading presentation.
253
257
 
254
258
  The mode toggle is a sticky overlay in the right margin when there is room,
255
259
  and may overlap content in narrow editors. It never changes text flow or reserves
256
- an asymmetric rail. Left and right padding are equal and shrink
257
- from 80px to a 24px minimum on narrow editors. Documents with top-level headings
258
- retain a font-relative 3.5em minimum for hanging heading markers on both sides.
260
+ an asymmetric rail. Left and right padding use two fixed sizes, without
261
+ intermediate scaling: 8px through 600px editor width, then 48px.
262
+ Once the document reaches its configured maximum width (900px by default),
263
+ it stays that width and additional space goes equally to the outer margins.
264
+ Disabling the width limit keeps the 48px margins on wide editors.
265
+ Top-level headings retain
266
+ symmetric 2em minimum clearance for their hanging markers, independent of heading
267
+ level. Long prefixes scale to fit that gutter instead of moving the document.
268
+ Top padding stays at 32px regardless of editor width, document content, or
269
+ scrollbar gutters. The VS Code webview uses thin scrollbars with transparent
270
+ tracks. First and later headings use identical font line boxes, preserving the
271
+ same text-to-underline spacing. Only the first block's top margin is removed;
272
+ the fixed top padding provides the optical spacing adjustment.
259
273
  The `editor/readonly-toggle/` fixtures include wide, narrow, and scrolling documents.
260
- The first heading has no additional top margin in either presentation; the
274
+ The first block has no additional top margin in either presentation. The first
275
+ block inside a blockquote also has no top margin, preventing it from collapsing
276
+ outward and shifting the quote when a marker-only line gains content. The
261
277
  paired `HeadingReading` and `HeadingEditing` fixtures and lock-toggle browser
262
278
  tests guard its text position. VS Code themes map whitespace indicators to
263
279
  `editorWhitespace.foreground`, including its dark-theme opacity.
280
+ The `HeadingSpacingH1` and `HeadingSpacingH2` fixtures compare first and later
281
+ headings; browser tests cover their underline spacing across themes, widths,
282
+ wrapped text, presentation modes, and active or inactive selections.
264
283
 
265
284
  Set `EditorViewOptions.highlightActiveBlock` to `false` to disable the active
266
285
  block's background and glow, or update the live `view.highlightActiveBlock`