This is a simple Go program that converts Markdown files (.md) to HTML file (.html) .
- The program reads a Markdown file.
- It converts the content to HTML.
- It saves the converted HTML in a new file.
- Go (version 1.18 or later) needs to be installed.
-
Install Go: If you don't have Go installed, you can download it from here.
-
Clone the project:
git clone https://github.com/n1tik91/Markdown---HTML.git
cd Markdown---HTML
Run this command to install the blackfriday package:
go get github.com/russross/blackfriday/v2
Run the program by typing:
-
go run main.go
-
go run main.go Markdownfile.md
The program will create a new .html file with the same name as your Markdown file (e.g., Markdownfile.md.html).