From 1d518ea67a9884353876df81b4e5c15076c8d8ac Mon Sep 17 00:00:00 2001 From: raife-wh <194232000+raife-wh@users.noreply.github.com> Date: Thu, 25 Jun 2026 20:51:58 +0100 Subject: [PATCH] fix: respect height attribute on images in markdown body --- packages/assets/styles/classes.scss | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/assets/styles/classes.scss b/packages/assets/styles/classes.scss index 67dccb2c0d..f490b13777 100644 --- a/packages/assets/styles/classes.scss +++ b/packages/assets/styles/classes.scss @@ -898,9 +898,11 @@ a:not(.no-click-animation), img { max-width: 100%; - height: auto; display: inline-block; } + img:not([height]) { + height: auto; + } html:not(.dark-mode, .oled-mode) & img[src$='#gh-dark-mode-only'] { display: none;