From f7eaf2e5e080766744ad74770b3f1c86d9337d1f Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Mon, 30 Mar 2026 00:00:03 -0700 Subject: [PATCH] fix: restore markdown preview list markers (#223) * fix: restore list markers in markdown preview The app-wide CSS reset removes list-style from all elements, which strips bullet points and numbers from markdown preview content. Add scoped overrides for .markdown-body to restore disc/circle/square markers for unordered lists and decimal markers for ordered lists. * fix: restore markdown preview list markers --- src/renderer/src/assets/main.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/renderer/src/assets/main.css b/src/renderer/src/assets/main.css index 9f3592abb..21a6cd420 100644 --- a/src/renderer/src/assets/main.css +++ b/src/renderer/src/assets/main.css @@ -545,6 +545,12 @@ list-style: square; } +/* GFM task lists already render an explicit checkbox input, so keeping the + browser marker here would show both a bullet and a checkbox for one item. */ +.markdown-body ul.contains-task-list, +.markdown-body li.task-list-item { + list-style: none; +} .markdown-body li { margin: 0.25em 0; }