Created
October 9, 2013 06:05
-
-
Save chergert/6896889 to your computer and use it in GitHub Desktop.
a little helper program for working with markdown.
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
| #!/usr/bin/env python | |
| from markdown2 import markdown | |
| import sys | |
| if sys.argv[1:]: | |
| for f in sys.argv[1:]: | |
| print markdown(file(f).read()) | |
| else: | |
| print markdown(sys.stdin.read()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment