diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-05-13 13:52:52 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-05-13 13:52:52 +0200 |
| commit | 11f1f0818b990be1ed4a16652b7f30bf11159237 (patch) | |
| tree | b52fc6063d8bdec3937ec384cc44ee7a616e51e4 /src/library/structure | |
| parent | 3e9c63d685a6ff05a72e5a07d40216ff0ac6ae32 (diff) | |
Pass language to raw show rule
Diffstat (limited to 'src/library/structure')
| -rw-r--r-- | src/library/structure/heading.rs | 2 | ||||
| -rw-r--r-- | src/library/structure/list.rs | 2 | ||||
| -rw-r--r-- | src/library/structure/table.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/library/structure/heading.rs b/src/library/structure/heading.rs index 468757ad..70589de0 100644 --- a/src/library/structure/heading.rs +++ b/src/library/structure/heading.rs @@ -68,7 +68,7 @@ impl Show for HeadingNode { Self { body: self.body.unguard(sel), ..*self }.pack() } - fn encode(&self) -> Dict { + fn encode(&self, _: StyleChain) -> Dict { dict! { "level" => Value::Int(self.level.get() as i64), "body" => Value::Content(self.body.clone()), diff --git a/src/library/structure/list.rs b/src/library/structure/list.rs index fca7d5ce..6bcc9f3e 100644 --- a/src/library/structure/list.rs +++ b/src/library/structure/list.rs @@ -86,7 +86,7 @@ impl<const L: ListKind> Show for ListNode<L> { .pack() } - fn encode(&self) -> Dict { + fn encode(&self, _: StyleChain) -> Dict { dict! { "start" => Value::Int(self.start as i64), "tight" => Value::Bool(self.tight), diff --git a/src/library/structure/table.rs b/src/library/structure/table.rs index 304a8681..b983a7ea 100644 --- a/src/library/structure/table.rs +++ b/src/library/structure/table.rs @@ -60,7 +60,7 @@ impl Show for TableNode { .pack() } - fn encode(&self) -> Dict { + fn encode(&self, _: StyleChain) -> Dict { dict! { "cells" => Value::Array( self.cells |
