From 687c56af19ab2e590052da32c4f7df06d8060765 Mon Sep 17 00:00:00 2001 From: xfy Date: Fri, 3 Jul 2026 09:44:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(post):=20=E6=81=A2=E5=A4=8D=E6=96=87?= =?UTF-8?q?=E7=AB=A0=E6=AD=A3=E6=96=87=E5=88=97=E8=A1=A8=E7=9A=84=20marker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Tailwind Preflight 全局把 ol/ul 的 list-style 清成 none, 而 .md-content 下的列表规则只恢复了缩进,没有恢复 list-style-type, 导致有序列表不显示数字、无序列表不显示项目符号。 拆分 ol/ul 规则,分别恢复 list-style-type: decimal/disc。 任务列表项(含 checkbox 的 li)已有 list-style: none 覆盖,不受影响。 --- input.css | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/input.css b/input.css index 2208cc2..8db594f 100644 --- a/input.css +++ b/input.css @@ -292,6 +292,16 @@ margin-bottom: var(--content-gap-paper); } + /* Tailwind Preflight 把 list-style 清成 none,这里恢复被清掉的 marker。 + * 任务列表项(含 checkbox 的 li)另有规则覆盖为 none,不受影响。 */ + .md-content ul { + list-style-type: disc; + } + + .md-content ol { + list-style-type: decimal; + } + .md-content li { margin-top: 0.3rem; }