From 0c8e5550e7dc2c343e9a387eb1af9dd92d1b720b Mon Sep 17 00:00:00 2001 From: Mikayla Maki Date: Wed, 27 Nov 2024 10:47:23 -0800 Subject: [PATCH] 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 --- crates/markdown_preview/src/markdown_renderer.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/markdown_preview/src/markdown_renderer.rs b/crates/markdown_preview/src/markdown_renderer.rs index 6140372e0b..39bcd546df 100644 --- a/crates/markdown_preview/src/markdown_renderer.rs +++ b/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() }