Center images when they are the only contents in a paragraph.
Some checks failed
format Build format has succeeded
clippy Build clippy has failed
rust-test Build rust-test has succeeded
build Build build has succeeded

This commit is contained in:
Tom Alexander
2025-02-22 13:15:58 -05:00
parent c371b999d5
commit ae6f18d19c
4 changed files with 43 additions and 5 deletions

View File

@@ -12,6 +12,7 @@ use super::RenderObject;
#[serde(rename = "paragraph")]
pub(crate) struct RenderParagraph {
children: Vec<RenderObject>,
is_single_image: bool,
post_blank: organic::types::PostBlank,
}
@@ -26,6 +27,7 @@ render!(RenderParagraph, IParagraph, original, render_context, {
Ok(RenderParagraph {
children,
is_single_image: original.is_single_image(),
post_blank: original.post_blank,
})
});