fix: tables fill the column as a card, matching common Markdown viewers (v2.18.2)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-11-12 13:24:37 -07:00
1 parent 41c373f46c
commit bba2178496
4 files changed
+25 -10

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
def test_tables_get_a_scroll_wrapper():
"""v2.18.2: tables are wrapped so they can fill the column and scroll sideways"""
from starpunk.models import render_markdown
html = render_markdown("| Color | Why |\n|---|---|\n| Black | Removal |\n\nAfter")
assert html.startswith('<div class="table-wrap"><table>') and "</table></div>" in html
assert "<p>After</p>" in html