Last active
December 11, 2015 01:58
-
-
Save michaelhood/4526984 to your computer and use it in GitHub Desktop.
markdown to browser demo (via github api)
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
#!/usr/bin/env bash | |
echo "# sup markdown" > sup.md | |
cat sup.md | { _t=$(mktemp --suffix=\.html); curl -s -H "Content-type: text/plain" -d @/dev/stdin https://api.github.com/markdown/raw > $_t ; open $_t ; rm -f $_t; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment