Skip to content

Instantly share code, notes, and snippets.

@michaelhood
Last active December 11, 2015 01:58
Show Gist options
  • Save michaelhood/4526984 to your computer and use it in GitHub Desktop.
Save michaelhood/4526984 to your computer and use it in GitHub Desktop.
markdown to browser demo (via github api)
#!/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