- Download and install
pandocwith:
$ brew install pandoc- Make a markdown file if you don't have one:
$ echo 'Hello\n===\nHeader\n---\n* list\n* list2' > sample.md- Convert to html with pandoc using the from (
-f) and to (-t) flags:
$ pandoc -f markdown -t html sample.md