starlight-cannoli-plugins 1.2.6 → 1.2.7

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.
@@ -166,7 +166,7 @@ ${formattedSource}
166
166
 
167
167
  // src/plugins/remark-latex-compile/compile.ts
168
168
  function hashLatexCode(code) {
169
- const normalized = code.split("\n").map((line) => line.trim()).join("\n").trim();
169
+ const normalized = code.split("\n").map((line) => line.trim()).filter((line) => !line.startsWith("%")).filter(Boolean).join("\n").trim();
170
170
  return createHash("md5").update(normalized).digest("hex").slice(0, 16);
171
171
  }
172
172
  function buildLatexSource(latexCode) {
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  remarkLatexCompile,
9
9
  starlightLatexCompile
10
- } from "./chunk-W5PDCSS2.js";
10
+ } from "./chunk-LF4VMIII.js";
11
11
  import {
12
12
  starlightSyncDocsToPublic
13
13
  } from "./chunk-GE24XGG7.js";
@@ -2,7 +2,7 @@ import {
2
2
  compileLatexToSvg,
3
3
  remarkLatexCompile,
4
4
  starlightLatexCompile
5
- } from "../chunk-W5PDCSS2.js";
5
+ } from "../chunk-LF4VMIII.js";
6
6
  import "../chunk-QGM4M3NI.js";
7
7
  export {
8
8
  compileLatexToSvg,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  starlightLatexCompile,
3
3
  starlight_plugin_default
4
- } from "../chunk-W5PDCSS2.js";
4
+ } from "../chunk-LF4VMIII.js";
5
5
  import "../chunk-QGM4M3NI.js";
6
6
  export {
7
7
  starlight_plugin_default as default,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "starlight-cannoli-plugins",
3
3
  "type": "module",
4
- "version": "1.2.6",
4
+ "version": "1.2.7",
5
5
  "description": "Starlight plugins for automatic sidebar generation and link validation",
6
6
  "license": "ISC",
7
7
  "main": "./dist/index.js",