15 lines
253 B
Python
15 lines
253 B
Python
#!/usr/bin/python
|
|
""" Run Markdown from the command line. """
|
|
|
|
import sys
|
|
from markdown import parse_options, markdownFromFile
|
|
|
|
options = parse_options()
|
|
|
|
#if os.access(inFile, os.R_OK):
|
|
|
|
if not options:
|
|
sys.exit(0)
|
|
|
|
markdownFromFile(**options)
|