H2M is a command-line tool (CLI) for converting files:
✅ Markdown (.md) → HTML (.html)
✅ HTML (.html) → Markdown (.md)
Fast, simple, and efficient.
- Go installed (
>= 1.18)
Clone the repository and build the project:
git clone https://github.com/Ano2225/go-h2m-cli-convertor
cd go-h2m-cli-convertor
go build -o h2m./h2m md2html -i document.md -o result.html./h2m html2md -i page.html -o result.mdRun the tool without arguments to enter interactive mode:
./h2mType exit or press Ctrl+C to quit.
./h2m --help # Hello World
This is a **Markdown** file../h2m -i sample.md -o sample.html<h1>Hello World</h1>
<p>This is a <strong>Markdown</strong> file.</p>Fork, modify, and submit a pull request!
👤 Arouna Ouattara
🔗 LinkedIn
🚀 Happy coding! 😃