starlight-cannoli-plugins 1.2.9 → 1.2.10

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.
@@ -42,7 +42,7 @@ async function scanMarkdownForHashes(dir, hashes) {
42
42
  await scanMarkdownForHashes(fullPath, hashes);
43
43
  } else if (entry.isFile() && (entry.name.endsWith(".md") || entry.name.endsWith(".mdx"))) {
44
44
  const content = await readFile(fullPath, "utf-8");
45
- const latexBlockRegex = /```(?:tex|latex)\s+compile\n([\s\S]*?)\n```/g;
45
+ const latexBlockRegex = /```(?:tex|latex)\s+compile\r?\n([\s\S]*?)\r?\n```/g;
46
46
  const matches = content.matchAll(latexBlockRegex);
47
47
  for (const match of matches) {
48
48
  const latexCode = match[1];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "starlight-cannoli-plugins",
3
3
  "type": "module",
4
- "version": "1.2.9",
4
+ "version": "1.2.10",
5
5
  "description": "Starlight plugins for automatic sidebar generation and link validation",
6
6
  "license": "ISC",
7
7
  "main": "./dist/index.js",