This is a Python implementation of John Gruber's Markdown. It is almost completely compliant with the reference implementation, though there are a few known issues. See Features for information on what exactly is supported and what is not. Additional features are supported by the Available Extensions.
To install Python Markdown download the zip file and extract the
files. If you want to install markdown as a module into your python
tree, run sudo python setup.py install
from a directory where you
unzip the files.
To use markdown.py from the command line, run it as
python markdown.py <input_file>
or
python markdown.py <input_file> > <output_file>
For more details, use the -h
or --help
options from the command line
or read the Command Line Docs available online.
To use markdown as a module:
import markdown
html = markdown.markdown(your_text_string)
For more details see the Module Docs.
You may ask for help and discuss various other issues on the mailing list and report bugs on the bug tracker.
Other contributions:
<hr/>
tags.
<mailto:...>
syntax and a reg ex
for "smart" emphasis (ignoring underscores within a word).
The code is dual-licensed under GPL and BSD License. Other licensing arrangements can be discussed.