starlight-cannoli-plugins 1.2.7 → 1.2.8

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.
@@ -209,6 +209,12 @@ function compileLatexToSvg(latexCode, svgOutputDir) {
209
209
  workDir,
210
210
  texFile
211
211
  ]);
212
+ if (latexResult.error) {
213
+ const code = latexResult.error.code;
214
+ throw new Error(
215
+ `[remark-latex-compile] pdflatex not found on PATH (${code}).`
216
+ );
217
+ }
212
218
  if (latexResult.status !== 0) {
213
219
  const errorOutput = latexResult.stderr?.toString() || latexResult.stdout?.toString() || "";
214
220
  const userMessage = createCompilationErrorMessage(
@@ -224,6 +230,12 @@ function compileLatexToSvg(latexCode, svgOutputDir) {
224
230
  "-o",
225
231
  svgPath
226
232
  ]);
233
+ if (dvisvgmResult.error) {
234
+ const code = dvisvgmResult.error.code;
235
+ throw new Error(
236
+ `[remark-latex-compile] dvisvgm not found on PATH (${code}).`
237
+ );
238
+ }
227
239
  if (dvisvgmResult.status !== 0) {
228
240
  const errorOutput = dvisvgmResult.stderr?.toString() || dvisvgmResult.stdout?.toString() || "";
229
241
  throw new Error(
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  remarkLatexCompile,
9
9
  starlightLatexCompile
10
- } from "./chunk-LF4VMIII.js";
10
+ } from "./chunk-7NVLVO6Z.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-LF4VMIII.js";
5
+ } from "../chunk-7NVLVO6Z.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-LF4VMIII.js";
4
+ } from "../chunk-7NVLVO6Z.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.7",
4
+ "version": "1.2.8",
5
5
  "description": "Starlight plugins for automatic sidebar generation and link validation",
6
6
  "license": "ISC",
7
7
  "main": "./dist/index.js",