Created
February 13, 2012 16:39
-
-
Save jaymzcd/1818056 to your computer and use it in GitHub Desktop.
Use documentup.com to prettify your markdown files from the commandline
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
function nicereadme { | |
TARGET_DOC=${1:-/tmp/doc.html} | |
INFILE=${2:-README.md} | |
curl -s -X POST --data-urlencode content@$INFILE http://documentup.com/compiled > $TARGET_DOC; | |
echo "$INFILE is pretty at file://$TARGET_DOC"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment