Skip to content

Instantly share code, notes, and snippets.

@cjdurkin
Created January 22, 2017 23:05
Show Gist options
  • Save cjdurkin/68f028548b15a87e2beee4a252efe84e to your computer and use it in GitHub Desktop.
Save cjdurkin/68f028548b15a87e2beee4a252efe84e to your computer and use it in GitHub Desktop.
Markdown preview with pandoc
#!/bin/bash
FILE=${1:-README.md}
fn=$(mktemp /tmp/md-$(uuidgen).html)
pandoc --from markdown --to html $FILE --output $fn
open $fn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment