diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-26 13:25:14 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-26 13:26:31 +0200 |
| commit | f7c67cde72e6a67f45180856b332bae9863243bd (patch) | |
| tree | 09b1a40e17b2f8aa0c3661ac989a40840cea1f12 /src/eval | |
| parent | 09aabc3a21e403e0b09a6d6ba517e34a303b217c (diff) | |
New document & flow building
Diffstat (limited to 'src/eval')
| -rw-r--r-- | src/eval/mod.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/eval/mod.rs b/src/eval/mod.rs index 4a820a84..bb9eb2fb 100644 --- a/src/eval/mod.rs +++ b/src/eval/mod.rs @@ -177,7 +177,8 @@ impl Eval for ListNode { type Output = Content; fn eval(&self, ctx: &mut Context, scp: &mut Scopes) -> EvalResult<Self::Output> { - Ok(Content::List(library::structure::ListItem { + Ok(Content::Item(library::structure::ListItem { + kind: library::structure::UNORDERED, number: None, body: Box::new(self.body().eval(ctx, scp)?), })) @@ -188,7 +189,8 @@ impl Eval for EnumNode { type Output = Content; fn eval(&self, ctx: &mut Context, scp: &mut Scopes) -> EvalResult<Self::Output> { - Ok(Content::Enum(library::structure::ListItem { + Ok(Content::Item(library::structure::ListItem { + kind: library::structure::ORDERED, number: self.number(), body: Box::new(self.body().eval(ctx, scp)?), })) |
