Created
November 27, 2010 16:27
-
-
Save matthewmccullough/718036 to your computer and use it in GitHub Desktop.
Convert a markdown file to an HTML file and give the same name but with HTML as the file extension.
This file contains hidden or 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 | |
| #Uses the brew or macports binaries of 'markdown'. Needs the 'markdown' executable on the $PATH. | |
| INPUTFILE="$1" | |
| OUTPUTFILE=`echo "$INPUTFILE" | sed "s/\.md/\.html/"` | |
| echo Writing markdown file to \"$OUTPUTFILE\" | |
| markdown.pl "$INPUTFILE" > "$OUTPUTFILE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment