Open artistl opened 1 month ago
Ah. Well, calling parse
replaces the documentclass
macro with that error. So that means you cannot use it twice on different documents. Therefore, you have to call generator.reset()
first thing in your function, before latexjs.parse()
.
Let me know if that solves your issue.
Is there any obvious reason to be getting this error in the js console? I think I'm doing everything right...? My first time calling doPandoc(), everything works. But the second+ times I get this error. What is received back from the HTTP response is not a standalone latex doc... it has nothing like \documentclass.