Skip to content

Instantly share code, notes, and snippets.

@NathanielWroblewski
Last active August 29, 2015 14:07
Show Gist options
  • Select an option

  • Save NathanielWroblewski/49f7e769a28129bdd86d to your computer and use it in GitHub Desktop.

Select an option

Save NathanielWroblewski/49f7e769a28129bdd86d to your computer and use it in GitHub Desktop.
Convert markdown to HTML

Convert Markdown documents to HTML

Steps

  1. Download and install pandoc with:
$ brew install pandoc
  1. Make a markdown file if you don't have one:
$ echo 'Hello\n===\nHeader\n---\n* list\n* list2' > sample.md
  1. Convert to html with pandoc using the from (-f) and to (-t) flags:
$ pandoc -f markdown -t html sample.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment