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/README.md +32 -30
- package/dist/agent/will.mjs +2 -1
- package/dist/images/playback.mjs +3 -2
- package/dist/kit/index.mjs +1 -1
- package/dist/kit/ledger/carried.d.mts +20 -0
- package/dist/kit/ledger.d.mts +88 -0
- package/dist/kit/ledger.mjs +18 -0
- package/dist/kit/markdown-it.d.mts +4 -0
- package/dist/kit/markdown-it.mjs +39 -0
- package/dist/kit/pdf-glyphs.mjs +59 -18
- package/dist/kit/pdf-source.d.mts +5 -0
- package/dist/kit/pdf-source.mjs +125 -0
- package/dist/kit/render-markdown.mjs +3 -2
- package/dist/kit/render-print.mjs +10 -5
- package/dist/kit/render-sanitize.mjs +28 -10
- package/dist/kit/render-styles.mjs +2 -2
- package/dist/kit/render.mjs +7 -5
- package/dist/kit/will.d.mts +42 -0
- package/dist/spec/document-settings.mjs +92 -6
- package/dist/spec/html-blocks.mjs +4 -2
- package/dist/spec/md-assets.mjs +27 -6
- package/dist/spec/md-layout.mjs +3 -3
- package/dist/spec/md-source.mjs +8 -4
- package/dist/spec/word-sidecar.mjs +7 -0
- package/package.json +21 -4
- package/style.css +10 -12
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;
|
|
255
|
-
|
|
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.
|
|
267
|
-
.md-render h2{font-size:calc(var(--md-text-body) * 1.
|
|
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:
|
|
365
|
-
padding-top:
|
|
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:
|
|
372
|
-
width:
|
|
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)}
|