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.
This commit is contained in:
Jinjing
2026-03-29 23:55:08 -07:00
committed by GitHub
parent 61998ed464
commit 414b7e8cd5
+19
View File
@@ -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;
}