Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix: markdown bullets inside of details (#8767)

Myles Scolnickeb9f82da9a78
diff --git a/frontend/src/css/md.css b/frontend/src/css/md.css
index a904368755..4a80026bb2 100644
--- a/frontend/src/css/md.css
+++ b/frontend/src/css/md.css
@@ -374,6 +374,13 @@ button .prose.prose {
@apply p-4 pt-0;
}
+/* Restore proper list indentation inside details blocks.
+ The p-4 above overrides prose's padding-inline-start for bullet space.
+ This ensures bullets render correctly with list-style-position: outside. */
+.markdown details > :is(ul, ol) {
+ padding-inline-start: 2.5rem;
+}
+
.markdown .codehilite {
background-color: var(--slate-2);
border-radius: 4px;
diff --git a/marimo/_smoke_tests/markdown/markdown_pymdownx.py b/marimo/_smoke_tests/markdown/markdown_pymdownx.py
index aa84adcccf..f640f0c5da 100644
--- a/marimo/_smoke_tests/markdown/markdown_pymdownx.py
+++ b/marimo/_smoke_tests/markdown/markdown_pymdownx.py
@@ -114,6 +114,20 @@ def _(mo):
This indicates a successful outcome or positive note
///
+
+ /// details | Details with lists
+ type: info
+
+ This is a note with bullets:
+ - First item
+ - Second item
+ - Third item
+
+ And an ordered list:
+ 1. One
+ 2. Two
+ 3. Three
+ ///
""")
return