Created
January 22, 2017 23:05
-
-
Save cjdurkin/68f028548b15a87e2beee4a252efe84e to your computer and use it in GitHub Desktop.
Markdown preview with pandoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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