mdxflavours 0.9
Markdown extensions for basic syntax flavoring.
Available extensions
At the moment 2 extensions available:
- autobr - for converting line breaks to br-tags
- autolink - for automatically converting urls to links
Installation
Get source from GitHub:
$ git clone git://github.com/05bit/python-mdxflavours.git
and add mdxflavours to PYTHONPATH:
$ export PYTHONPATH=$PYTHONPATH:$(pwd)/mdxflavours/
or:
$ cd mdxflavours $ python setup.py install
Note: importing package mdxflavours automatically adds required path to system paths.
Usage
Example for auto line breaks:
>>> import markdown >>> markdown.markdown(u'And may the force \nbe with you!') # no extension >>> u'<p>And may the force<br />\nbe with you!</p>' >>> markdown.markdown(u'And may the force\nbe with you!', extensions=['autobr']) >>> u'<p>And may the force<br />\nbe with you!</p>'
- Author: Alexey Kinyov
- Home Page: https://github.com/05bit/python-mdxflavours
- Download URL: https://github.com/05bit/python-mdxflavours/zipball/master
- Keywords: markdown,extensions
- License: BSD
-
Categories
- Development Status :: 4 - Beta
- Environment :: Web Environment
- Intended Audience :: Developers
- License :: OSI Approved :: BSD License
- Operating System :: OS Independent
- Programming Language :: Python :: 2.5
- Programming Language :: Python :: 2.6
- Programming Language :: Python :: 2.7
- Topic :: Text Processing :: Filters
- Topic :: Text Processing :: Markup :: HTML
- Package Index Owner: Alexey.Kinyov
- DOAP record: mdxflavours-0.9.xml
