Skip to content

fix: preserve empty cells in markdown table parsing#508

Open
lucharo wants to merge 1 commit intoslopus:mainfrom
lucharo:fix/markdown-table-rendering
Open

fix: preserve empty cells in markdown table parsing#508
lucharo wants to merge 1 commit intoslopus:mainfrom
lucharo:fix/markdown-table-rendering

Conversation

@lucharo
Copy link

@lucharo lucharo commented Feb 1, 2026

Summary

  • Fix markdown table rendering when cells contain empty values
  • Tables with empty cells were displaying incorrectly due to the parser filtering out all empty strings
  • Add trimPipeArtifacts() helper to only remove leading/trailing empty strings from pipe characters
  • Pad rows to match header count for consistent column alignment
  • Improve table styling with better padding and responsive width

Test plan

  • Render a table with empty middle cells: | A | | C |
  • Verify columns remain aligned
  • Verify empty cells display correctly (not shifted)
  • Check tables with uneven row lengths

Fixes #506

🤖 Generated with Claude Code

Tables with empty cells were rendering incorrectly because the parser
filtered out all empty strings, including intentionally empty cells.

Changes:
- Add trimPipeArtifacts() helper to only remove leading/trailing empty
  strings from pipe characters, preserving middle empty cells
- Pad rows to match header count for consistent column alignment
- Improve table styling with better padding and responsive width

Fixes slopus#506

Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)

Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
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.

Markdown tables do not render cleanly - empty cells cause column misalignment

1 participant