starlight-cannoli-plugins 2.5.4 → 2.5.5

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.
@@ -29,6 +29,12 @@ function syncTocLabelsFromHeadings() {
29
29
  if (!span) return;
30
30
  span.innerHTML = heading.innerHTML;
31
31
  });
32
+ document.querySelectorAll("starlight-toc ul > li > a > span").forEach((span) => {
33
+ if (span.childElementCount !== 1) return;
34
+ const child = span.children[0];
35
+ if (child.tagName !== "STRONG") return;
36
+ span.innerHTML = child.innerHTML;
37
+ });
32
38
  }
33
39
  function wrapDetailsContent() {
34
40
  console.log("Wrapping details element contents");
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "starlight-cannoli-plugins",
3
3
  "type": "module",
4
- "version": "2.5.4",
4
+ "version": "2.5.5",
5
5
  "description": "Starlight plugins for automatic sidebar generation and link validation",
6
6
  "license": "ISC",
7
7
  "main": "./dist/index.js",
@@ -57,7 +57,7 @@
57
57
  "url": "https://github.com/OccasionalCoderByTrade/astro-starlight-plugins"
58
58
  },
59
59
  "scripts": {
60
- "app:dev": "npm run app:preprocess && rm -rf .astro/ && astro dev --port 5600",
60
+ "app:dev": "npm run app:preprocess && rm -rf .astro/ && astro dev --host --port 5600",
61
61
  "app:build": "npm run app:preprocess && rm -rf .astro/ && astro build",
62
62
  "app:preview": "astro build && astro preview --port 5600",
63
63
  "app:preprocess": "npx sass --quiet --no-source-map src/styles/_bootstrap-utilities-builder.scss src/styles/_bootstrap-utilities.scss",