comparison 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
comparison
equal deleted inserted replaced
120:309238f5b7b1 121:dd7181c021de
2 if ($('#paste-tabs').length == 1) { 2 if ($('#paste-tabs').length == 1) {
3 raw = $('#plain pre').text(); 3 raw = $('#plain pre').text();
4 4
5 $('#markdown div').html(marked(raw)); 5 $('#markdown div').html(marked(raw));
6 $('#markdown div pre').addClass('prettyprint'); 6 $('#markdown div pre').addClass('prettyprint');
7 $('#markdown div a').prop('rel', 'nofollow');
7 8
8 $('#highlight pre').text(raw); 9 $('#highlight pre').text(raw);
9 10
10 window.prettyPrint && prettyPrint(); 11 window.prettyPrint && prettyPrint();
11 12