summaryrefslogtreecommitdiff
path: root/src/model/show.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-05-13 13:52:52 +0200
committerLaurenz <laurmaedje@gmail.com>2022-05-13 13:52:52 +0200
commit11f1f0818b990be1ed4a16652b7f30bf11159237 (patch)
treeb52fc6063d8bdec3937ec384cc44ee7a616e51e4 /src/model/show.rs
parent3e9c63d685a6ff05a72e5a07d40216ff0ac6ae32 (diff)
Pass language to raw show rule
Diffstat (limited to 'src/model/show.rs')
-rw-r--r--src/model/show.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/model/show.rs b/src/model/show.rs
index af87d930..ac73cb76 100644
--- a/src/model/show.rs
+++ b/src/model/show.rs
@@ -14,7 +14,7 @@ pub trait Show: 'static {
fn unguard(&self, sel: Selector) -> ShowNode;
/// Encode this node into a dictionary.
- fn encode(&self) -> Dict;
+ fn encode(&self, styles: StyleChain) -> Dict;
/// The base recipe for this node that is executed if there is no
/// user-defined show rule.
@@ -70,8 +70,8 @@ impl Show for ShowNode {
self.0.unguard(sel)
}
- fn encode(&self) -> Dict {
- self.0.encode()
+ fn encode(&self, styles: StyleChain) -> Dict {
+ self.0.encode(styles)
}
fn realize(&self, ctx: &mut Context, styles: StyleChain) -> TypResult<Content> {