css: inline image only as direct children of p and span, closes #1340 (#1341)

This commit is contained in:
Huang Xin
2025-06-05 13:47:56 +08:00
committed by GitHub
parent dfa17c1c0b
commit debd60fb70
+1 -1
View File
@@ -266,7 +266,7 @@ const getLayoutStyles = (
}
/* inline images without dimension */
p img, span img, sup img {
p > img, span > img, sup img {
height: 1em;
}
p:has(> a:only-child) img, p:has(> img:only-child) img, span:has(> img:only-child) img {