Live Web App: https://ananyaja.github.io/markdown-conversion-utilities/
Converts CSV files and plain text lines into clean GitHub Markdown tables with <br> cell wrapping.
Available both as modular Python CLI scripts (python/) for two-step pipeline processing and a zero-dependency browser utility (index.html with web/styles.css and web/converter.js).
Prevents wide cells from breaking table layout and eliminates manual pipe-table formatting.
markdown-conversion-utilities/
├── index.html
├── README.md
├── python/
│ ├── csv_to_markdown.py
│ └── text_to_csv.py
├── results/
│ ├── orders.md
│ ├── scheduled.md
│ └── scheduled_chunks.csv
├── samples/
│ ├── orders.csv
│ └── scheduled.txt
└── web/
├── converter.js
└── styles.css
- Modular Two-Step Pipeline:
text_to_csv.pygroups lines into numbered columns (1,2,3, ...) in a CSV file, andcsv_to_markdown.pyconverts any CSV into a<br>-wrapped Markdown table. <br>Cell Wrapping: Wraps long cell text cleanly with<br>tags, escapes|characters, pads uneven rows, and readsutf-8-sigencoded files.- Flexible Column Limits: Supports explicit per-column wrap widths via
--limitsand automatic column capping via--max-col-width. - Browser Utility: Zero-dependency browser interface (
index.html,web/styles.css, andweb/converter.js) for client-side conversion, copying, and.mddownload without a server.
Run from the repository root in PowerShell:
python .\python\csv_to_markdown.py .\samples\orders.csv --md-out .\results\orders.md
python .\python\text_to_csv.py --input-file .\samples\scheduled.txt --chunk-size 3 --csv-out .\results\scheduled_chunks.csv
python .\python\csv_to_markdown.py .\results\scheduled_chunks.csv --max-col-width 35 --md-out .\results\scheduled.mdCommon options:
--limits: Explicit per-column wrap limits (for example,--limits 10 12 45).--max-col-width: Automatic wrap limit cap when--limitsis omitted (default:40).--chunk-size: Number of items per row / numbered columns intext_to_csv.py(default:3).--csv-out/--md-out: Output file paths for generated CSV and Markdown files.
Open the live GitHub Pages site or launch index.html locally in any browser (backed by web/styles.css and web/converter.js) to load or paste input data and copy or download the generated Markdown.
Developed by Ananyaja Debadipta as part of an ongoing independent technical documentation and workflow automation project, with Gemini serving as an AI helping companion along the way.