loom-md-tables

Solid

Fix markdown table alignment and spacing issues.

Data & Documents 54 stars 3 forks Updated today MIT

Install

View on GitHub

Quality Score: 85/100

Stars 20%
58
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
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-aligns and right-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-aligned and right-padded** (`ljust`) regardless of the alignment marker - Preserves the alignment marker in the separator row (`:---`, `:---:`, `---:`), so GFM rendering still honors it - Uses the header's column count: short body rows gain empty trailing cells and excess body cells are dropped, matching GFM...

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