From 13ce66ac5b27c47dce103e487358d2a9db6bd588 Mon Sep 17 00:00:00 2001
From: Myriad-Dreamin <35292584+Myriad-Dreamin@users.noreply.github.com>
Date: Mon, 13 Nov 2023 16:09:34 +0800
Subject: [PATCH] dev(core): add DynPolymorphicExporter (#411)
---
core/src/exporter.rs | 57 ++++++++++++++++++++++++++++++++++++++++----
core/src/lib.rs | 4 +++-
2 files changed, 56 insertions(+), 5 deletions(-)
diff --git a/core/src/exporter.rs b/core/src/exporter.rs
index 272f5035f..be387d3ae 100644
--- a/core/src/exporter.rs
+++ b/core/src/exporter.rs
@@ -5,8 +5,8 @@ use typst::{diag::SourceResult, World};
pub type DynExporter = Box + Send>;
pub trait Transformer {
- /// Export the given input with given world.
- /// the writable world is hiden by trait itself.
+ /// Export the given input with given world. the writable world is hiden by
+ /// trait itself.
fn export(&self, world: &dyn World, output: Input) -> SourceResult