From f7c67cde72e6a67f45180856b332bae9863243bd Mon Sep 17 00:00:00 2001 From: Laurenz Date: Tue, 26 Apr 2022 13:25:14 +0200 Subject: New document & flow building --- src/eval/mod.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/eval/mod.rs') 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 { - 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 { - 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)?), })) -- cgit v1.2.3