mdp is a command-line tool that converts a Markdown file into HTML format that can be viewed in a browser.
- Convert Markdown file into HTML format
- Sanitize the generated HTML document
- Previewing the generated document in the browser.
- Clone the repository
git clone [email protected]:hayohtee/mdp.git
- Change into the project directory
cd mdp
- Compile
go build ./...
- Convert a Markdown
To convert a and preview a markdown simply use the -file flag and specify the Markdown file that you want to convert
Here is an example showing how to convert README.md file./mdp -file README.md
- Disable auto preview
By default mdp auto preview the generated HTML file in user's default program associated with HTML file.
To disable this feature, include -s in addition to -file flag which skip autopreview.
Here is an example showing how to convert README.md file while skipping auto preview./mdp -file README.md -s
- Show all available options
./todo -h