diff --git a/pyproject.toml b/pyproject.toml index e1eaed6..1e7e350 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,7 @@ dependencies = [ "httpx", "jinja2", "markdown", + "mdx-breakless-lists", "questionary", ] diff --git a/src/claude_code_transcripts/__init__.py b/src/claude_code_transcripts/__init__.py index f2246a2..18d51bb 100644 --- a/src/claude_code_transcripts/__init__.py +++ b/src/claude_code_transcripts/__init__.py @@ -632,7 +632,11 @@ def format_json(obj): def render_markdown_text(text): if not text: return "" - return markdown.markdown(text, extensions=["fenced_code", "tables"]) + # Use mdx_breakless_lists extension to handle lists without blank lines + # This allows GitHub-flavored markdown style lists + return markdown.markdown( + text, extensions=["fenced_code", "tables", "mdx_breakless_lists"] + ) def is_json_like(text): diff --git a/tests/__snapshots__/test_generate_html/TestGenerateHtml.test_generates_page_001_html.html b/tests/__snapshots__/test_generate_html/TestGenerateHtml.test_generates_page_001_html.html index cdc794b..dfde7c2 100644 --- a/tests/__snapshots__/test_generate_html/TestGenerateHtml.test_generates_page_001_html.html +++ b/tests/__snapshots__/test_generate_html/TestGenerateHtml.test_generates_page_001_html.html @@ -160,9 +160,11 @@