Skip to content

A more liberal autolink extension for python Markdown

License

Notifications You must be signed in to change notification settings

kernc/markdown-urlize

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A more liberal autolink extension for python Markdown

  • inspired by Django's urlize function`

Requires: http://pypi.python.org/pypi/Markdown

To play nicely with Django, drop urlize.py into your PYTHONPATH or projects root directory as mdx_urlize.py for Django's Markup app to properly load this as an extension.

From http://stackoverflow.com/a/6553787/352452:

Once installed, you can use it in a Django template like this:

{{ value|markdown:"urlize" }}

Or in Python code like this:

import markdown  
md = markdown.Markdown(safe_mode=True, extensions=['urlize'])  
converted_text = md.convert(text)  

Here is the start of the Markdown extension docs in case you need more info.

About

A more liberal autolink extension for python Markdown

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published