fix latex rendering file operations (#559)

This commit is contained in:
end-4
2024-05-30 22:09:22 +07:00
parent a94172d9cd
commit a67cb9d73a
@@ -72,9 +72,9 @@ const TextBlock = (content = '') => Label({
label: content, label: content,
}); });
Utils.execAsync(['bash', '-c', `rm ${LATEX_DIR}/*`]) Utils.execAsync(['bash', '-c', `rm -rf ${LATEX_DIR}`])
.then(() => Utils.execAsync(['bash', '-c', `mkdir -p ${LATEX_DIR}`])) .then(() => Utils.execAsync(['bash', '-c', `mkdir -p ${LATEX_DIR}`]))
.catch(() => { }); .catch(print);
const Latex = (content = '') => { const Latex = (content = '') => {
const latexViewArea = Box({ const latexViewArea = Box({
// vscroll: 'never', // vscroll: 'never',