rapier-markdown-kit 1.2.6 → 1.2.8

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/style.css CHANGED
@@ -251,8 +251,9 @@
251
251
  max-height: 9rem;
252
252
  }
253
253
 
254
- /* Type keeps the reference line model: body 17.6/28 px at M; headings occupy two, one and a
255
- half, or one body line. Compact margins use the body's size: 8 px after prose, 12 after other
254
+ /* Type keeps the reference line model: body 17.6/28 px at M; h1 (2.2 times the body) occupies one
255
+ and three quarter body lines, h2 (1.75) and h3 (1.5) one and a half, h4 to h6 one, so a wrapped
256
+ heading sets about 1.3 of its size. Compact margins use the body's size: 8 px after prose, 12 after other
256
257
  blocks, 20 before headings and 4 after them at M. Sibling margins collapse to their maximum;
257
258
  the editor's derived neighbor gap carries the same boundary inside its measured wrapper. */
258
259
  .md-render{
@@ -263,8 +264,8 @@
263
264
  .md-render h1,.md-render h2,.md-render h3,.md-render h4,.md-render h5,.md-render h6{
264
265
  font-family:var(--md-font-sans);letter-spacing:-0.01em;
265
266
  line-height:var(--md-line);margin:var(--md-gap-heading-before) 0 var(--md-gap-heading-after);color:var(--md-heading-color);text-wrap:balance}
266
- .md-render h1{font-size:calc(var(--md-text-body) * 2.6);line-height:calc(var(--md-line) * 2);font-weight:var(--md-fw-semibold)}
267
- .md-render h2{font-size:calc(var(--md-text-body) * 1.9);line-height:calc(var(--md-line) * 1.5);font-weight:var(--md-fw-semibold)}
267
+ .md-render h1{font-size:calc(var(--md-text-body) * 2.2);line-height:calc(var(--md-line) * 1.75);font-weight:var(--md-fw-semibold)}
268
+ .md-render h2{font-size:calc(var(--md-text-body) * 1.75);line-height:calc(var(--md-line) * 1.5);font-weight:var(--md-fw-semibold)}
268
269
  .md-render h3{font-size:calc(var(--md-text-body) * 1.5);line-height:calc(var(--md-line) * 1.5);font-weight:var(--md-fw-semibold)}
269
270
  .md-render h4{font-size:calc(var(--md-text-body) * 1.25);font-weight:var(--md-fw-semibold)}
270
271
  /* h5/h6 complete the six-level hierarchy: modest but owned (explicit size/weight/color), never
@@ -361,15 +362,15 @@
361
362
  position:relative;
362
363
  --md-marker:0px;
363
364
  counter-increment:rapier-ol;
364
- min-height:calc(2 * var(--md-unit));
365
- padding-top:calc(0.15 * var(--md-unit));
365
+ min-height:0;
366
+ padding-top:0;
366
367
  }
367
368
  .md-render ol>li::before{
368
369
  content:counter(rapier-ol);
369
370
  position:absolute;
370
371
  /* The circle is centered on the item's first line: the li's own padding, plus half of what the 2rem circle is taller than one line. */
371
- inset-inline-start:calc(-2.75 * var(--md-unit) + var(--md-marker, 0px)); top:calc(calc(0.15 * var(--md-unit)) + (var(--md-line) - calc(2 * var(--md-unit))) / 2);
372
- width:calc(2 * var(--md-unit)); height:calc(2 * var(--md-unit));
372
+ inset-inline-start:calc(-2.75 * var(--md-unit) + var(--md-marker, 0px)); top:0;
373
+ width:min(2 * var(--md-unit), 1lh); height:min(2 * var(--md-unit), 1lh);
373
374
  display:flex; align-items:center; justify-content:center;
374
375
  border:2px solid var(--md-color-line);
375
376
  border-radius:999px;
@@ -411,7 +412,7 @@
411
412
  .md-render li{margin:0 0 calc(var(--md-line) / 4)}
412
413
  .md-render li:last-child{margin-bottom:0}
413
414
  .md-render li>ul,.md-render li>ol{margin:calc(var(--md-line) / 4) 0 0}
414
- .md-render a{color:var(--md-color-accent-text);text-decoration:underline;text-underline-offset:2px}
415
+ .md-render a{color:var(--md-color-accent-text);text-decoration:underline;text-underline-offset:2px;unicode-bidi:isolate}
415
416
  /* The house focus (rapier-app.css) in the document and on the exported page: the underline thickens, no ring. */
416
417
  .md-render a:focus-visible,.md-render ul.rapier-jump-list>li>a:focus-visible,.md-render .footnote-ref a:focus-visible,.md-render summary:focus-visible{outline:none;text-decoration:underline;text-decoration-thickness:3px;text-underline-offset:.2em}
417
418
 
@@ -650,9 +651,6 @@ html[data-invert-image-alpha="off"] :is(img,.md-render svg.rapier-native-flowcha
650
651
  vertical-align:middle;
651
652
  }
652
653
  .md-render img[data-rapier-image-size]{width:min(var(--md-image-width),100%);height:auto}
653
- /* AUTO stays relative to its column. Authored and gesture-owned inline sizing wins;
654
- Plain reads the intrinsic attributes without rerendering ordinary image blocks. */
655
- html:not([data-layout="plain"]) .md-render img[data-rapier-image-geometry="auto"]{width:min(var(--rapier-image-auto-width),var(--rapier-image-natural-width));height:auto}
656
654
  .md-render img:is([data-rapier-asset],[data-rapier-image-url]):not([data-rapier-asset-state="ready"]){background:color-mix(in srgb,var(--md-color-text) 5%,transparent)}
657
655
 
658
656
  .md-render dl{margin:0 0 var(--md-gap-block)}