From 414b7e8cd54f5d8cfe255f25430ab29a41e0caef Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Sun, 29 Mar 2026 23:55:08 -0700 Subject: [PATCH] fix: restore list markers in markdown preview (#221) 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. --- src/renderer/src/assets/main.css | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/renderer/src/assets/main.css b/src/renderer/src/assets/main.css index fa58b73d4..9f3592abb 100644 --- a/src/renderer/src/assets/main.css +++ b/src/renderer/src/assets/main.css @@ -526,6 +526,25 @@ padding-left: 1.5em; } +/* Restore list markers inside markdown preview because the app-wide reset removes + them for navigation UI. Markdown content needs native list semantics to match + source documents, so this override should stay scoped to the preview surface. */ +.markdown-body ul { + list-style: disc; +} + +.markdown-body ol { + list-style: decimal; +} + +.markdown-body ul ul { + list-style: circle; +} + +.markdown-body ul ul ul { + list-style: square; +} + .markdown-body li { margin: 0.25em 0; }