md-table-fixer

Detect and fix misaligned Markdown tables with Unicode-aware width calculations.

2|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/hailingu/llm-prompts --skill md-table-fixer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: md-table-fixer
Source: https://github.com/hailingu/llm-prompts/tree/main/skills/md-table-fixer
Command: npx skills add https://github.com/hailingu/llm-prompts --skill md-table-fixer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Detects and fixes misaligned Markdown tables across Markdown documents, with display-width awareness for CJK characters to ensure consistent formatting.

Core Features & Use Cases

  • Detect misaligned Markdown tables across single files or entire repositories.
  • Align tables using display-width aware padding that correctly handles CJK characters.
  • Preserve non-table content and create backups before applying fixes.

Quick Start

Run the tool on your Markdown docs to fix misaligned tables.

Frequently Asked Questions about md-table-fixer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fix misaligned Markdown tables containing CJK characters?

Fix misaligned Markdown tables by using a display-width aware alignment tool that calculates Unicode padding, correctly handling CJK characters to ensure consistent visual formatting across documentation files.

What is display-width aware Markdown table alignment?

Display-width aware Markdown table alignment calculates character display widths using Unicode rules, correctly padding CJK characters which occupy double-width space, ensuring tables render properly aligned instead of appearing broken.

Can I scan and fix Markdown tables across an entire repository?

Yes, you can detect and fix misaligned Markdown tables across entire repositories or single files. The tool scans documentation projects and knowledge bases, preserving non-table content while applying width-aware alignment fixes.

Does the Markdown table fixer preserve my original files?

The Markdown table fixer preserves your original files by creating backup copies before applying alignment modifications. Non-table content remains untouched while only misaligned table formatting receives width-aware corrections.

What's the best way to align Markdown tables in multilingual documentation?

The best way to align Markdown tables in multilingual documentation is using a width-aware tool that calculates Unicode display widths, properly handling CJK characters and standard text to maintain consistent table formatting.

Why do my Markdown tables look misaligned when mixing CJK and Latin text?

Markdown tables look misaligned when mixing CJK and Latin text because CJK characters occupy double display width. Standard alignment tools count characters instead of display width, causing visual misalignment in rendered tables.