mirror of
https://github.com/typst/typst
synced 2025-05-14 17:15:28 +08:00
Fix Cast
implementation of LayoutNode
This commit is contained in:
parent
84bd3454df
commit
64f8f981c2
@ -689,6 +689,8 @@ castable! {
|
|||||||
castable! {
|
castable! {
|
||||||
LayoutNode,
|
LayoutNode,
|
||||||
Expected: "content",
|
Expected: "content",
|
||||||
|
Value::None => Self::default(),
|
||||||
|
Value::Str(text) => Content::Text(text).pack(),
|
||||||
Value::Content(content) => content.pack(),
|
Value::Content(content) => content.pack(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user