diff app/assets/javascripts/init.tabs.js @ 121:dd7181c021de

Add rel=nofollow to links in markdown.
author Edho Arief <edho@myconan.net>
date Mon, 12 Nov 2012 14:38:32 +0700
parents 309238f5b7b1
children a836cfe4092f
line wrap: on
line diff
--- a/app/assets/javascripts/init.tabs.js	Mon Nov 12 14:35:19 2012 +0700
+++ b/app/assets/javascripts/init.tabs.js	Mon Nov 12 14:38:32 2012 +0700
@@ -4,6 +4,7 @@
 
     $('#markdown div').html(marked(raw));
     $('#markdown div pre').addClass('prettyprint');
+    $('#markdown div a').prop('rel', 'nofollow');
 
     $('#highlight pre').text(raw);