Skip to content

GNITOAHC/md-html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

md-html

md-html is a lightweight command-line tool to convert Markdown to HTML. It offers additional features such as live previewing.

Installation

From source

Install the latest released version:

go install github.com/gnitoahc/md-html

Pre-built binaries

Pre-built binaries are available on the releases page

Homebrew

brew install gnitoahc/tap/md-html

Usage

Usage: md-html [options] <filename>
  -o string
        Name of the output file
  -p string
        Port to serve the HTML file (default "8080")
  -v    Version of the program
  -w    Watch for changes in the markdown file

For instance, md-html README.md will generate a README.html, md-html -w README.md will watch for changes and regenerate the HTML automatically. Either refresh manually or visit localhost for auto live refresh.

To convert markdown to PDF, open the HTML in browser then "Print to PDF" is recommended.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published