画像を含むパラグラフ中のテキストをキャプションとして扱う

This commit is contained in:
moris 2025-02-01 20:02:56 +09:00
parent 0b54400c57
commit 984ca3cb3a

View File

@ -50,10 +50,14 @@
& img { & img {
display: block; display: block;
margin: 1em auto; margin: auto;
max-width: 100%; max-width: 100%;
max-height: 60vh; max-height: 60vh;
} }
& p:has(img) {
text-align: center;
& br {display: none;}
}
& code { & code {
font-size: 1rem; font-size: 1rem;