diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/notes/models.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/notes/models.py b/app/notes/models.py index a7ff599..25062d0 100644 --- a/app/notes/models.py +++ b/app/notes/models.py @@ -20,7 +20,7 @@ from .build import * from twython import Twython # http://freewisdom.org/projects/python-markdown/ import markdown - +#from twitter_text.autolink import Autolink def twitter_truncate(txt): return txt.split("|")[0] @@ -81,11 +81,10 @@ class Note(models.Model): return self.get_next_by_date_created() def render(self): - from twitter_text.autolink import Autolink opts = {'username_include_symbol': True} temp = " ".join(self.body_markdown.split("|")) html = markdown.markdown(urlize(temp, 45), extensions=['extra'], safe_mode=False) - return Autolink(html).auto_link_usernames_or_lists(opts) + return html def save(self): self.body_html = markdown.markdown(urlize(self.body_markdown, 45), extensions=['extra'], safe_mode=False) |