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
package/package.json
CHANGED