@hyperbook/markdown 0.24.2 → 0.24.4

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.
@@ -39,7 +39,7 @@ var hyperbook = (function () {
39
39
  const expanded = collapsibles.some((c) => c.id === id);
40
40
  if (expanded) {
41
41
  collapsibleEl.classList.add("expanded");
42
- } else {
42
+ } else if (!id.startsWith("_nav:")) {
43
43
  collapsibleEl.classList.remove("expanded");
44
44
  }
45
45
  }
@@ -215,7 +215,6 @@ hyperbook.python = (function () {
215
215
  const testCode = test.code.replace("#SCRIPT#", script);
216
216
 
217
217
  const heading = document.createElement("div");
218
- console.log(test);
219
218
  heading.innerHTML = `== Test ${test.name} ==`;
220
219
  heading.classList.add("test-heading");
221
220
  output.appendChild(heading);
@@ -95,9 +95,18 @@ header.inverted > .branding:hover {
95
95
  border-color: var(--color-spacer);
96
96
  }
97
97
 
98
+ .section > .name > .label {
99
+ color: var(--color-text);
100
+ }
101
+
102
+ .section > .name.active > .label {
103
+ color: var(--color-text);
104
+ }
105
+
98
106
  .section .name.empty {
99
107
  color: var(--color-text-deactivated);
100
108
  cursor: pointer;
109
+ font-style: italic;
101
110
  }
102
111
 
103
112
  .section > .name:hover {
package/dist/index.js CHANGED
@@ -66705,7 +66705,6 @@ var remarkDirectiveCollapsible_default = (ctx) => () => {
66705
66705
  for (const child of node3.children) {
66706
66706
  collapsibleContent.push(await remark(ctx).run(child));
66707
66707
  }
66708
- console.log(collapsibleContent);
66709
66708
  data.hChildren = [
66710
66709
  {
66711
66710
  type: "element",