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

Mikayla Maki created

Release Notes:

- Fixed a bug in the Markdown preview where images in the same paragraph
would be rendered next to each other

Change summary

crates/markdown_preview/src/markdown_renderer.rs | 1 +
1 file changed, 1 insertion(+)

Detailed changes

crates/markdown_preview/src/markdown_renderer.rs 🔗

@@ -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()
 }