Skip to content

Fix table rendering regression in preview panel#438

Open
samqbush wants to merge 1 commit into
schuyler:mainfrom
samqbush:claude/fix-table-rendering-432-ec043d2d
Open

Fix table rendering regression in preview panel#438
samqbush wants to merge 1 commit into
schuyler:mainfrom
samqbush:claude/fix-table-rendering-432-ec043d2d

Conversation

@samqbush

@samqbush samqbush commented Jun 1, 2026

Copy link
Copy Markdown

Summary

Fixes the table rendering regression where tables display with aggressively compressed column widths in the preview panel.

Problem

export.css applied word-break: break-word on td, th elements (added for issue #30), causing table columns to wrap text at every opportunity and compress to unusably narrow widths. This rule was never in the upstream MacDownApp/macdown PR #1320 — it was added during the macdown3000 implementation.

Fix

  • Removed the td, th { word-break: break-word } block
  • Added table-level overflow rules: table { display: block; width: max-content; max-width: 100%; overflow: auto; }

This follows the proven pattern from GitHub-2020.css (the only theme that previously handled tables correctly). Since export.css loads last in the stylesheet cascade, this fix applies to all 11 themes.

Behavior Change

  • Wide tables now scroll horizontally instead of compressing columns
  • Table cell text still wraps via the body { overflow-wrap: break-word } inheritance (gentler than explicit word-break on cells)

Related to #432

Replace aggressive td/th word-break rules with table-level overflow
handling. Wide tables now scroll horizontally instead of compressing
columns.

The previous word-break: break-word on td/th (added for issue schuyler#30) was
never in the upstream MacDownApp/macdown PR #1320 and caused tables to
render with unusably narrow columns. The new table rules follow the
proven pattern from GitHub-2020.css.

Related to schuyler#432
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant