@hyperbook/markdown 0.15.2 → 0.15.3

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.
@@ -2,6 +2,7 @@ var hyperbook = (function () {
2
2
  const collapsibles = document.getElementsByClassName("collapsible");
3
3
  const animationDelay = 100;
4
4
  const calcMaxHeight = (elem) => {
5
+ if (!elem) return;
5
6
  const content = elem.nextElementSibling;
6
7
  if (content) {
7
8
  if (elem.classList.contains("expanded")) {
@@ -569,7 +569,6 @@ nav li+li {
569
569
 
570
570
  .section {
571
571
  margin-top: 8px;
572
- margin-bottom: 8px;
573
572
  }
574
573
 
575
574
  .section>.name {
package/dist/index.js CHANGED
@@ -64623,7 +64623,7 @@ var makeNavigationSectionElement = (ctx, section) => {
64623
64623
  type: "element",
64624
64624
  tagName: "div",
64625
64625
  properties: {
64626
- class: "collapsible-content links"
64626
+ class: virtual ? "links" : "collapsible-content links"
64627
64627
  },
64628
64628
  children: linksElements
64629
64629
  });