fix: respect height attribute on images in markdown body (#6506)

Co-authored-by: Truman Gao <106889354+tdgao@users.noreply.github.com>
This commit is contained in:
checkrd
2026-07-04 22:47:17 +00:00
committed by GitHub
co-authored by Truman Gao
parent a2adbe18c4
commit fa749b5aff
+3 -1
View File
@@ -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;