mirror of
https://github.com/Myriad-Dreamin/tinymist.git
synced 2025-08-04 10:18:16 +00:00
parent
f5fb352a2a
commit
5920b1b671
1 changed files with 8 additions and 0 deletions
|
@ -345,6 +345,14 @@ impl<F: CompilerFeat> WorldComputeGraph<F> {
|
|||
|
||||
/// Compile once from scratch.
|
||||
pub fn pure_compile(&self) -> Warned<SourceResult<Arc<TypstPagedDocument>>> {
|
||||
let res = self.ensure_main();
|
||||
if let Err(err) = res {
|
||||
return Warned {
|
||||
output: Err(err),
|
||||
warnings: EcoVec::new(),
|
||||
};
|
||||
}
|
||||
|
||||
let res = ::typst::compile(&self.snap.world);
|
||||
// compile document
|
||||
Warned {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue