@hyperbook/markdown 0.33.0 → 0.33.2

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.
@@ -13,6 +13,11 @@ figure {
13
13
  color: var(--color-brand);
14
14
  }
15
15
 
16
+ .hyperbook-markdown hr {
17
+ clear: both;
18
+ border: none;
19
+ }
20
+
16
21
  /**
17
22
  * IE 8–11 and Prince don’t recognize the `wbr` element,
18
23
  * but a pseudo-element can achieve the same effect with IE 9+ and Prince.
@@ -8,6 +8,7 @@
8
8
  }
9
9
 
10
10
  .directive-alert {
11
+ display: flow-root;
11
12
  letter-spacing: 0;
12
13
  box-sizing: border-box;
13
14
  font-size: inherit;
@@ -1,4 +1,8 @@
1
- .directive-collapsible > button {
1
+ .directive-collapsible {
2
+ display: flow-root;
3
+ }
4
+
5
+ .directive-collapsible>button {
2
6
  width: 100%;
3
7
  text-align: left;
4
8
  border-style: solid;
@@ -11,13 +15,13 @@
11
15
  margin-bottom: 10px;
12
16
  }
13
17
 
14
- .directive-collapsible > button.expanded {
18
+ .directive-collapsible>button.expanded {
15
19
  border-bottom-left-radius: 0px;
16
20
  border-bottom-right-radius: 0px;
17
21
  margin-bottom: 0px;
18
22
  }
19
23
 
20
- .directive-collapsible > button:after {
24
+ .directive-collapsible>button:after {
21
25
  content: "\02795";
22
26
  /* Unicode character for "plus" sign (+) */
23
27
  font-size: 13px;
@@ -25,7 +29,7 @@
25
29
  margin-left: 5px;
26
30
  }
27
31
 
28
- .directive-collapsible > button.expanded:after {
32
+ .directive-collapsible>button.expanded:after {
29
33
  content: "\2796";
30
34
  /* Unicode character for "minus" sign (-) */
31
35
  }
@@ -39,7 +43,7 @@
39
43
  display: none;
40
44
  }
41
45
 
42
- .directive-collapsible > button.expanded+.collapsible-content {
46
+ .directive-collapsible>button.expanded+.collapsible-content {
43
47
  display: block;
44
48
  border-style: solid;
45
49
  border-width: 1px;
@@ -51,13 +55,13 @@
51
55
  border-bottom-right-radius: 4px;
52
56
  }
53
57
 
54
- .directive-collapsible > button {
58
+ .directive-collapsible>button {
55
59
  color: var(--color-text);
56
60
  border-color: var(--color-spacer);
57
61
  background-color: var(--color-nav);
58
62
  }
59
63
 
60
- .directive-collapsible > button:after {
64
+ .directive-collapsible>button:after {
61
65
  color: var(--color-text);
62
66
  }
63
67
 
@@ -529,6 +529,7 @@ header {
529
529
  max-width: var(--main-width);
530
530
  margin: 0 auto;
531
531
  margin-top: 40px;
532
+ clear: both;
532
533
  }
533
534
 
534
535
  .flex {
package/dist/index.js CHANGED
@@ -64051,8 +64051,6 @@ var remarkDirectiveAlert_default = (ctx) => () => {
64051
64051
  const content5 = node3.attributes?.label;
64052
64052
  const type = Object.keys(node3.attributes || {}).join(" ").trim();
64053
64053
  const icon = content5 || type;
64054
- delete node3.attributes?.color;
64055
- delete node3.attributes?.label;
64056
64054
  data.hName = "div";
64057
64055
  data.hProperties = {
64058
64056
  class: `directive-alert ${type} ${icon ? "icon" : ""}`.trim(),