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