chore: format

This commit is contained in:
C4illin 2024-06-11 19:32:23 +02:00
parent b05b0a14b0
commit 853a4c4f32
2 changed files with 6 additions and 2 deletions

View file

@ -50,4 +50,4 @@ export const Header = ({
</nav>
</header>
);
};
};

View file

@ -19,7 +19,11 @@ export function convert(
): Promise<string> {
return new Promise((resolve, reject) => {
// const fileName: string = (targetPath.split("/").pop() as string).replace(".pdf", "")
const outputPath = targetPath.split("/").slice(0, -1).join("/").replace("./", "")
const outputPath = targetPath
.split("/")
.slice(0, -1)
.join("/")
.replace("./", "");
exec(
`pdflatex -interaction=nonstopmode -output-directory="${outputPath}" "${filePath}"`,
(error, stdout, stderr) => {