GitHub - mdw-tools/md2html: cat content.md | md2html > content.html · GitHub
Skip to content

mdw-tools/md2html

Folders and files

Repository files navigation

md2html

Convert markdown to html (for viewing in browser, printing to pdf, etc.).

Rudimentary usage

$ cat content.md | md2html > content.html

More advanced usage

Requires entr

$ ls content.md | entr -cs 'cat content.md | md2html > content.html'

Then navigate to file:///path/to/content.html in a browser. Whenever the file is saved, the html will be regenerated, and refreshing the browser will load the new content. (FUTURE: make the browser auto-reload, maybe via a websockets connection.)

About

cat content.md | md2html > content.html

Resources

License

Stars

Watchers

Forks

Contributors