Skip to content

Instantly share code, notes, and snippets.

@akornor
Created November 19, 2017 14:51
Show Gist options
  • Save akornor/e8ef313f8b8a16e50dba4892d98521a5 to your computer and use it in GitHub Desktop.
Save akornor/e8ef313f8b8a16e50dba4892d98521a5 to your computer and use it in GitHub Desktop.
view html rendered markdown(github flavoured)
#!/bin/bash
file="$1"
curl -s https://api.github.com/markdown/raw -H 'Content-Type: text/plain' --data-binary "@$file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment