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
This commit is contained in:
Jinjing
2026-03-30 00:00:03 -07:00
committed by GitHub
parent 414b7e8cd5
commit f7eaf2e5e0
+6
View File
@@ -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;
}