Spec and fix bug #776 by using auto_link instead of my dumb regex

This commit is contained in:
Eric Allen 2008-10-03 10:19:41 -04:00
parent 01c7fd1296
commit 05f21ebba2
4 changed files with 71 additions and 2 deletions

View file

@ -3,5 +3,5 @@
element.next('.todo_notes').toggle
end -%>
<div class="todo_notes" id="<%= dom_id(item, 'notes') %>" style="display:none">
<%= markdown( item.notes.gsub(/((https?:\/\/[^ \n\t]*))/, '"\1":\2') ) %>
<%= sanitize(markdown( auto_link(item.notes)) ) %>
</div>