Skip to content

feat(table): center columns with AlignCenter - #22

Merged
dgrieser merged 1 commit into
mainfrom
feat/table-align-center
Nov 25, 2026
Merged

dgrieser merged 1 commit into
mainfrom
feat/table-align-center

Conversation

@dgrieser

Copy link
Copy Markdown
Collaborator

Adds table.AlignCenter: cells are padded on both sides, an odd space going to the right.

  • Works in plain, framed and markdown tables; the last column of a plain table is padded on the left only, so no line ends in spaces.
  • Markdown marks a centered column :---:. An empty centered column is drawn one cell wide so the rule keeps a hyphen between its colons, and TotalWidth matches.

snaxus-cli uses it in place of its own centering.

🤖 Generated with Claude Code

AlignCenter pads a cell on both sides, an odd space going to the right,
in plain, framed and markdown tables. Markdown marks the column with a
colon at both ends of its header rule; an empty centered column is drawn
one cell wide so that the rule keeps a hyphen between its colons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@dgrieser
dgrieser merged commit f10cd62 into main Nov 25, 2026
14 checks passed
@dgrieser
dgrieser deleted the feat/table-align-center branch November 25, 2026 22:52
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