Ill no longer work on this because its useless :).
Markdown2HTML is a command-line tool written in Go that converts Markdown files to HTML. It is designed to be simple and efficient for users looking to convert Markdown documents easily.
- Converts Markdown to HTML
- Supports headings, lists, paragraphs, and other common Markdown elements
- Wraps output in a complete HTML structure with DOCTYPE, , and tags
- Automatically generates an output file in the same directory as the input file
Make sure you have Go installed on your machine. You can verify the installation by running:
go version- Clone the repository:
git clone https://github.com/PetarMc1/Markdown2HTML.git- Navigate to the project directory:
cd Markdown2HTML- Build the tool:
go build -o md2html OR go build -o md2html.exe (for Windows)This will generate an executable file called md2html (or md2html.exe on Windows).
To convert a Markdown file to HTML, run the following command:
md2html <input-file>For example:
md2html README.mdThis will generate an output.html file in the same directory.
If your Markdown file (README.md) contains:
# Test Document
This is a test of Markdown to HTML conversion.
- Item 1
- Item 2
- Item 3Running the command:
md2html sample.mdWill generate an HTML file with the following structure:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Markdown Output</title>
</head>
<body>
<h1>Test Document</h1>
<p>This is a test of Markdown to HTML conversion.</p>
<ul>
<li>Item 1</li>
<li>Item 2</li>
<li>Item 3</li>
</ul>
</body>
</html>Feel free to contribute to this project! Fork the repository, make your changes, and submit a pull request.
This project is licensed under the MIT License.