Expose route-D pages through a preview endpoint
This commit is contained in:
1 parent
12288b51ee
commit
875f8a7600
8 files changed
+151
-5
No files matched your search
@@ -323,6 +323,8 @@ impl Page {
|
||||
VerticalItem::Halign(halign) => halign.width,
|
||||
VerticalItem::Rule { width, .. } => *width,
|
||||
VerticalItem::Box(box_) => box_.width,
|
||||
VerticalItem::Paragraph(paragraph) => paragraph.width,
|
||||
VerticalItem::Math { width, .. } => *width,
|
||||
_ => 0,
|
||||
})
|
||||
.max()
|
||||
@@ -471,6 +473,8 @@ impl Page {
|
||||
.map(|item| match item {
|
||||
VerticalItem::Halign(halign) => halign.width,
|
||||
VerticalItem::Rule { width, .. } => *width,
|
||||
VerticalItem::Paragraph(paragraph) => paragraph.width,
|
||||
VerticalItem::Math { width, .. } => *width,
|
||||
_ => 0,
|
||||
})
|
||||
.max()
|
||||
|
||||
Reference in new issue
Block a user