loom-md-tables

Solid

Fix markdown table alignment and spacing issues. Use when formatting tables in markdown files, aligning columns, normalizing cell padding, or ensuring proper GFM table structure. Runs a Python script to normalize column widths while preserving alignment markers.

Data & Documents 53 stars 0 forks Updated today MIT

Install

View on GitHub

Quality Score: 88/100

Stars 20%
58
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# Markdown Table Formatting Utility for fixing markdown table alignment and spacing. Normalizes column widths, ensures consistent padding, and preserves alignment markers. ## Quick Examples ```bash # Preview fixed output python fix-md-tables.py document.md # Fix in-place python fix-md-tables.py document.md -i ``` ### Common Patterns **Status tables:** ```markdown | Stage | Status | Branch | | ----- | --------- | ---------- | | build | Complete | loom/build | | test | Executing | loom/test | ``` **Configuration tables:** ```markdown | Option | Default | Description | | ---------- | ------- | --------------------- | | timeout | 300 | Session timeout (sec) | | auto_merge | false | Enable auto merging | ``` **Right-aligned numbers** (script preserves the `---:` marker but left-pads the cell *text* — GFM still renders these right-aligned when displayed): ```markdown | Item | Count | Total | | ----- | ----: | ----: | | Files | 42 | 500 | | Lines | 1,234 | 5,000 | ``` ## Features - Aligns each column to its widest cell (separators get a minimum width of 3) - Single-space padding; cell **content is always left-padded** (`ljust`) regardless of the alignment marker - Preserves the alignment marker in the separator row (`:---`, `:---:`, `---:`), so GFM rendering still honors it - Pads ragged rows to the table's max column count (short rows gain empty trailing cells) - Inserts a blank line before and after each table when missing ## ...

Details

Author
cosmix
Repository
cosmix/loom
Created
8 months ago
Last Updated
today
Language
Rust
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category