summaryrefslogtreecommitdiff
path: root/src/library/math.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-02-22 14:31:09 +0100
committerLaurenz <laurmaedje@gmail.com>2022-02-23 14:53:55 +0100
commite1f29d6cb9437a4afb2e4fc4ee10a5b8717ab9fa (patch)
tree1ce5f2bd858f6665d3867a2939d4b474c1b70377 /src/library/math.rs
parent2bf32c51bceb2f3a8b7ebea3d7c7d6d96757591b (diff)
Rework the core context
Diffstat (limited to 'src/library/math.rs')
-rw-r--r--src/library/math.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/library/math.rs b/src/library/math.rs
index 40a1990e..5d0ae41b 100644
--- a/src/library/math.rs
+++ b/src/library/math.rs
@@ -13,7 +13,7 @@ pub struct MathNode {
#[class]
impl MathNode {
- fn construct(_: &mut Vm, args: &mut Args) -> TypResult<Template> {
+ fn construct(_: &mut Context, args: &mut Args) -> TypResult<Template> {
Ok(Template::show(Self {
formula: args.expect("formula")?,
display: args.named("display")?.unwrap_or(false),
@@ -22,9 +22,9 @@ impl MathNode {
}
impl Show for MathNode {
- fn show(&self, vm: &mut Vm, styles: StyleChain) -> TypResult<Template> {
+ fn show(&self, ctx: &mut Context, styles: StyleChain) -> TypResult<Template> {
Ok(styles
- .show(self, vm, [
+ .show(self, ctx, [
Value::Str(self.formula.clone()),
Value::Bool(self.display),
])?