@threepenny/md2pdf 2.4.0 → 2.5.0

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.
@@ -46,6 +46,30 @@ body {
46
46
  background: #fff;
47
47
  }
48
48
 
49
+ /* A PDF can't be clicked, so a collapsed section prints open, its summary kept with what follows. After it
50
+ comes a paragraph's space, or its last block's if that is more. A section that ends a quote, callout,
51
+ table cell, or the last item of a list inside one of those or another list, gives up that space, and so
52
+ do the sections and last block inside it, up to three sections deep, so none shows inside; at the end of
53
+ a nested list, the next item is then an item's space away, as after text. */
54
+ .markdown-body details {
55
+ margin-bottom: calc(0.75em * var(--md2pdf-space));
56
+ }
57
+ .markdown-body :is(blockquote, .markdown-alert, td, th, :is(blockquote, .markdown-alert, td, th, li) :is(ul, ol) > li:last-child) > details:last-child,
58
+ .markdown-body :is(blockquote, .markdown-alert, td, th, :is(blockquote, .markdown-alert, td, th, li) :is(ul, ol) > li:last-child) > details:last-child > :last-child,
59
+ .markdown-body :is(blockquote, .markdown-alert, td, th, :is(blockquote, .markdown-alert, td, th, li) :is(ul, ol) > li:last-child) > details:last-child > details:last-child > :last-child,
60
+ .markdown-body :is(blockquote, .markdown-alert, td, th, :is(blockquote, .markdown-alert, td, th, li) :is(ul, ol) > li:last-child) > details:last-child > details:last-child > details:last-child > :last-child {
61
+ margin-bottom: 0;
62
+ }
63
+ .markdown-body details::details-content {
64
+ content-visibility: visible;
65
+ }
66
+ .markdown-body details:not([open]) > summary {
67
+ list-style-type: disclosure-open;
68
+ }
69
+ .markdown-body details > summary {
70
+ break-after: avoid;
71
+ }
72
+
49
73
  /* Nothing follows the document's last block, so Safari keeps no space below it: it starts a blank
50
74
  page for that space when it runs past the end of a page. Only Safari, since Chrome's margin-trim
51
75
  also drops the space above a block that a page break moves. */
@@ -29,6 +29,30 @@ body {
29
29
  background: #fff;
30
30
  }
31
31
 
32
+ /* A PDF can't be clicked, so a collapsed section prints open, its summary kept with what follows. After it
33
+ comes a paragraph's space, or its last block's if that is more. A section that ends a quote, callout,
34
+ table cell, or the last item of a list inside one of those or another list, gives up that space, and so
35
+ do the sections and last block inside it, up to three sections deep, so none shows inside; at the end of
36
+ a nested list, the next item is then an item's space away, as after text. */
37
+ .markdown-body details {
38
+ margin-bottom: calc(0.9em * var(--md2pdf-space));
39
+ }
40
+ .markdown-body :is(blockquote, .markdown-alert, td, th, :is(blockquote, .markdown-alert, td, th, li) :is(ul, ol) > li:last-child) > details:last-child,
41
+ .markdown-body :is(blockquote, .markdown-alert, td, th, :is(blockquote, .markdown-alert, td, th, li) :is(ul, ol) > li:last-child) > details:last-child > :last-child,
42
+ .markdown-body :is(blockquote, .markdown-alert, td, th, :is(blockquote, .markdown-alert, td, th, li) :is(ul, ol) > li:last-child) > details:last-child > details:last-child > :last-child,
43
+ .markdown-body :is(blockquote, .markdown-alert, td, th, :is(blockquote, .markdown-alert, td, th, li) :is(ul, ol) > li:last-child) > details:last-child > details:last-child > details:last-child > :last-child {
44
+ margin-bottom: 0;
45
+ }
46
+ .markdown-body details::details-content {
47
+ content-visibility: visible;
48
+ }
49
+ .markdown-body details:not([open]) > summary {
50
+ list-style-type: disclosure-open;
51
+ }
52
+ .markdown-body details > summary {
53
+ break-after: avoid;
54
+ }
55
+
32
56
  /* Nothing follows the document's last block, so Safari keeps no space below it: it starts a blank
33
57
  page for that space when it runs past the end of a page. Only Safari, since Chrome's margin-trim
34
58
  also drops the space above a block that a page break moves. */