From 25ac980c3635cbe5dc54644e4f59268470e655c8 Mon Sep 17 00:00:00 2001 From: riiim Date: Sun, 8 Nov 2026 15:04:03 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20Markdown=E3=81=AE=E7=95=AA=E5=8F=B7?= =?UTF-8?q?=E4=BB=98=E3=81=8D=E3=83=AA=E3=82=B9=E3=83=88=E3=81=8C=E8=A1=A8?= =?UTF-8?q?=E7=A4=BA=E3=81=95=E3=82=8C=E3=81=AA=E3=81=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tailwind preflight が ol のマーカーと余白を消したまま、本文では箇条書きだけ戻していた。 --- src/layouts/BlogLayout.astro | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/layouts/BlogLayout.astro b/src/layouts/BlogLayout.astro index 87e99cf..6c58679 100644 --- a/src/layouts/BlogLayout.astro +++ b/src/layouts/BlogLayout.astro @@ -350,6 +350,23 @@ const authorX = author?.links?.find(l => l.name === 'X')?.id; } } + /* + preflight が ol のマーカーと padding を消す。 + 目次は .toc ol の方が詳細度が高く、list-style: none とカウンタのまま残る。 + */ + ol { + padding-left: 1rem; + list-style: decimal; + list-style-position: outside; + + li { + + li, + > ol { + margin-top: 0.5rem; + } + } + } + *:not(pre) > code { padding: 0.1em 0.3em; background-color: #e5e5e5;