Fix Cast implementation of LayoutNode

This commit is contained in:
Laurenz 2022-05-12 11:42:09 +02:00
parent 84bd3454df
commit 64f8f981c2

View File

@ -689,6 +689,8 @@ castable! {
castable! {
LayoutNode,
Expected: "content",
Value::None => Self::default(),
Value::Str(text) => Content::Text(text).pack(),
Value::Content(content) => content.pack(),
}