Skip to content

About

A lightweight, dual-environment utility suite designed to eliminate documentation friction by instantly converting raw text chunks and CSV data into clean, formatted Markdown tables.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

20 Commits

Folders and files

Repository files navigation

Markdown Conversion Utilities

Python 3.7+ Frontend License: MIT

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.


Repository Structure

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

Key Features

  • Modular Two-Step Pipeline: text_to_csv.py groups lines into numbered columns (1, 2, 3, ...) in a CSV file, and csv_to_markdown.py converts 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 reads utf-8-sig encoded files.
  • Flexible Column Limits: Supports explicit per-column wrap widths via --limits and automatic column capping via --max-col-width.
  • Browser Utility: Zero-dependency browser interface (index.html, web/styles.css, and web/converter.js) for client-side conversion, copying, and .md download without a server.

Usage

Python Scripts

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.md

Common options:

  • --limits: Explicit per-column wrap limits (for example, --limits 10 12 45).
  • --max-col-width: Automatic wrap limit cap when --limits is omitted (default: 40).
  • --chunk-size: Number of items per row / numbered columns in text_to_csv.py (default: 3).
  • --csv-out / --md-out: Output file paths for generated CSV and Markdown files.

Browser Utility

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.


Author

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.

About

A lightweight, dual-environment utility suite designed to eliminate documentation friction by instantly converting raw text chunks and CSV data into clean, formatted Markdown tables.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages