Skip to content

Commit

Permalink
Make Markdown images layout vertically instead of horizontally (#21247)
Browse files Browse the repository at this point in the history
Release Notes:

- Fixed a bug in the Markdown preview where images in the same paragraph
would be rendered next to each other
  • Loading branch information
mikayla-maki authored and JosephTLyons committed Nov 27, 2024
1 parent 389b202 commit 9250d1d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/markdown_preview/src/markdown_renderer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down

0 comments on commit 9250d1d

Please sign in to comment.