Link recognition for Python Markdown
Project description
# Mdx Linkify
[![Build Status](https://travis-ci.org/daGrevis/mdx_linkify.png?branch=master)](https://travis-ci.org/daGrevis/mdx_linkify)
This extension for [Python Markdown](https://github.com/waylan/Python-Markdown) will convert all links to HTML anchors.
There’s [an existing solution](https://github.com/r0wb0t/markdown-urlize) for parsing links with regexes. Mdx Linkify is a bit smarter and asks [Bleach](https://github.com/jsocol/bleach) to parse them. :clap:
## An Example
>>> from markdown import markdown >>> text = "http://example.org/" >>> markdown(text) u'<p>http://example.org/</p>' >>> markdown(text, extensions=["linkify"]) u'<p><a href="http://example.org/">http://example.org/</a></p>'
## Installation
Simple installation on current environment:
pip install git+https://github.com/daGrevis/mdx_linkify@0.3
You can add it to requirements.txt too:
echo ‘git+https://github.com/daGrevis/mdx_linkify@0.3’ >> requirements.txt
P.S. Pay attention to `@0.3`. It’s the version number!
## Development
Fork repo,
Clone repo,
Create virtualenv,
Execute python setup.py install,
Add some awesome feature,
Check tests with python setup.py test,
Check pep8,
Add commit and push to forked repo,
Ask for a merge request,
Stay awesome! :+1: