rshow 0.0.6 → 0.0.7

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.
Files changed (34) hide show
  1. package/dist/main.js +14921 -632
  2. package/package.json +2 -1
  3. package/skills/rshow/SKILL.md +7 -0
  4. package/skills/rshow/reference/reports.md +5 -1
  5. package/skills/rshow-slides/SKILL.md +7 -0
  6. package/skills/rshow-slides/reference/layouts.md +15 -0
  7. package/themes/default/deck.js +86 -4
  8. package/themes/default/example/index.html +19 -2
  9. package/themes/default/example/report.html +17 -10
  10. package/themes/default/fonts/katex/KaTeX_AMS-Regular.woff2 +0 -0
  11. package/themes/default/fonts/katex/KaTeX_Caligraphic-Bold.woff2 +0 -0
  12. package/themes/default/fonts/katex/KaTeX_Caligraphic-Regular.woff2 +0 -0
  13. package/themes/default/fonts/katex/KaTeX_Fraktur-Bold.woff2 +0 -0
  14. package/themes/default/fonts/katex/KaTeX_Fraktur-Regular.woff2 +0 -0
  15. package/themes/default/fonts/katex/KaTeX_Main-Bold.woff2 +0 -0
  16. package/themes/default/fonts/katex/KaTeX_Main-BoldItalic.woff2 +0 -0
  17. package/themes/default/fonts/katex/KaTeX_Main-Italic.woff2 +0 -0
  18. package/themes/default/fonts/katex/KaTeX_Main-Regular.woff2 +0 -0
  19. package/themes/default/fonts/katex/KaTeX_Math-BoldItalic.woff2 +0 -0
  20. package/themes/default/fonts/katex/KaTeX_Math-Italic.woff2 +0 -0
  21. package/themes/default/fonts/katex/KaTeX_SansSerif-Bold.woff2 +0 -0
  22. package/themes/default/fonts/katex/KaTeX_SansSerif-Italic.woff2 +0 -0
  23. package/themes/default/fonts/katex/KaTeX_SansSerif-Regular.woff2 +0 -0
  24. package/themes/default/fonts/katex/KaTeX_Script-Regular.woff2 +0 -0
  25. package/themes/default/fonts/katex/KaTeX_Size1-Regular.woff2 +0 -0
  26. package/themes/default/fonts/katex/KaTeX_Size2-Regular.woff2 +0 -0
  27. package/themes/default/fonts/katex/KaTeX_Size3-Regular.woff2 +0 -0
  28. package/themes/default/fonts/katex/KaTeX_Size4-Regular.woff2 +0 -0
  29. package/themes/default/fonts/katex/KaTeX_Typewriter-Regular.woff2 +0 -0
  30. package/themes/default/fonts/katex/LICENSE +21 -0
  31. package/themes/default/math.css +46 -0
  32. package/themes/default/math.js +58 -0
  33. package/themes/default/report.css +15 -6
  34. package/themes/default/theme.json +7 -0
@@ -388,24 +388,30 @@ tbody tr:last-child td {
388
388
  font-variant-numeric: tabular-nums;
389
389
  }
390
390
 
391
- /* An equation is one line of mono with its number at the right end of the text
392
- column, so the number lines up with the right edge of the prose. The box
393
- itself stays in the body face, which is what makes --measure resolve to the
394
- same width here as in a paragraph. */
391
+ /* An equation is a .math box in KaTeX's own face with its number at the right
392
+ end of the text column, so the number lines up with the right edge of the
393
+ prose. A tall equation centres its number instead of sticking to the first
394
+ line. The box itself stays in the body face, which is what makes --measure
395
+ resolve to the same width here as in a paragraph. */
395
396
  .equation {
396
397
  display: grid;
397
398
  grid-template-columns: minmax(0, 1fr) auto;
398
- align-items: baseline;
399
+ align-items: center;
399
400
  gap: var(--space-05);
400
401
  margin: var(--space-06) 0;
401
402
  line-height: 1.5;
402
403
  }
403
404
 
404
- .equation > span:not(.eq-num) {
405
+ .equation > span:not(.eq-num):not(.math) {
405
406
  font-family: var(--font-mono);
406
407
  font-size: 0.95em;
407
408
  }
408
409
 
410
+ .equation > .math {
411
+ margin: 0;
412
+ min-width: 0;
413
+ }
414
+
409
415
  .eq-num {
410
416
  color: var(--muted);
411
417
  font-variant-numeric: tabular-nums;
@@ -539,6 +545,9 @@ tbody tr:last-child td {
539
545
 
540
546
  .refs li {
541
547
  margin: 0 0 var(--space-04);
548
+ /* A cited address is longer than a phone is wide and has no space to break
549
+ at, so it wraps mid path rather than widening the page. */
550
+ overflow-wrap: anywhere;
542
551
  }
543
552
 
544
553
  .refs li::marker {
@@ -55,6 +55,13 @@
55
55
  "example": "example/tui.html"
56
56
  }
57
57
  },
58
+ "addons": {
59
+ "math": {
60
+ "css": ["math.css"],
61
+ "js": ["math.js"],
62
+ "example": "example/report.html"
63
+ }
64
+ },
58
65
  "tokens": {
59
66
  "--font-sans": "\"IBM Plex Sans\", system-ui, -apple-system, \"Segoe UI\", sans-serif",
60
67
  "--font-mono": "\"IBM Plex Mono\", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace",