Skip to content

Instantly share code, notes, and snippets.

@rinx
Last active August 29, 2015 14:06
Show Gist options
  • Save rinx/5bcb9c2662fc63463fd9 to your computer and use it in GitHub Desktop.
Save rinx/5bcb9c2662fc63463fd9 to your computer and use it in GitHub Desktop.
To convert from markdown to HTML via pandoc with github-like style.

To convert from markdown to HTML via pandoc with github-like style.

Get github.css

From Github Markdown CSS.

$ wget https://gist.github.com/andyferra/2554919/raw/2e66cabdafe1c9a7f354aa2ebf5bc38265e638e5/github.css

or

$ wget https://gist.githubusercontent.com/rinx/f290d0c34fabe78723c2/raw/github.css

Convert from markdown to HTML

$ pandoc -s -t html5 -c github.css -o output.html input.md

Reference

PandocでMarkdownをhtmlに変換してgithubっぽくする

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment