Get rid of jquery-linkify.js
This commit is contained in:
parent
2a71c08e5f
commit
6334dfde06
@ -1 +0,0 @@
|
||||
function linkify(a,b){a=a.replace(/(http|https|ftp)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(:[a-zA-Z0-9]*)?\/?([a-zA-Z0-9\-\._\?\,\'\/\\\+&%\$#\=~])*/g,'<a href="$&">$&</a>');b&&(a=a.replace(/\B#(\w+)/g,"<a href="+b("$1")+">#$1</a>"));return a}(function(a){a.fn.linkify=function(b){return this.each(function(){var c=a(this);c.html(linkify(c.html(),b))})}})(jQuery);
|
@ -18,7 +18,6 @@ module ApplicationHelper
|
||||
end
|
||||
|
||||
def markdown(&block)
|
||||
markdown = Redcarpet::Markdown.new(Redcarpet::Render::HTML)
|
||||
markdown.render(capture(&block)).html_safe
|
||||
MKD_RENDERER.render(capture(&block)).html_safe
|
||||
end
|
||||
end
|
||||
|
@ -80,8 +80,4 @@
|
||||
|
||||
new AsciiIo.Views.CommentsIndex({ collection: comments });
|
||||
});
|
||||
|
||||
$(function() {
|
||||
$('.asciicast .description, .asciicast-heading .title').linkify();
|
||||
});
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user