-
-
Save harperreed/891783 to your computer and use it in GitHub Desktop.
markdown preview (for osx)
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 | |
# | |
# Displays a preview of the markdown file passed in using rdiscount | |
# https://github.com/ryankanno/scripts/blob/master/mdp | |
# Set Markdown file | |
MARKDOWN_FILE=$1 | |
# Redirect rdiscount to temp file | |
rdiscount ${MARKDOWN_FILE} > /tmp/mdp_preview.html | |
# Open temp file in browser | |
open /tmp/mdp_preview.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment