Make Markdown images layout vertically instead of horizontally (#21247)

Release Notes:

- Fixed a bug in the Markdown preview where images in the same paragraph
would be rendered next to each other
This commit is contained in:
Mikayla Maki 2024-11-27 10:47:23 -08:00 committed by GitHub
parent cff9ae0bbc
commit 0c8e5550e7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -417,6 +417,7 @@ fn render_markdown_paragraph(parsed: &MarkdownParagraph, cx: &mut RenderContext)
cx.with_common_p(div())
.children(render_markdown_text(parsed, cx))
.flex()
.flex_col()
.into_any_element()
}