We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f955b96 commit cd0d8dcCopy full SHA for cd0d8dc
src/command/render/cleanup.ts
@@ -57,10 +57,13 @@ export function renderCleanup(
57
}
58
// narrow supporting to figures dir for non-html formats
59
} else {
60
- const filesDir = join(
61
- dirname(Deno.realPathSync(input)),
+ let filesDir = join(
+ dirname(input),
62
inputFilesDir(input),
63
);
64
+ if (existsSync(filesDir)) {
65
+ filesDir = Deno.realPathSync(filesDir);
66
+ }
67
supporting = supporting.map((supportingDir) => {
68
if (filesDir === supportingDir) {
69
return join(filesDir, figuresDir(figureFormat));
0 commit comments