fixed github line numbering issue, fixed a few bugs in code block styling

This commit is contained in:
Brandon Mathis 2011-09-27 00:57:45 -05:00
parent 02433114c5
commit 04586299b1
2 changed files with 19 additions and 14 deletions

View file

@ -58,7 +58,7 @@ function addCodeLineNumbers() {
lineNumbers = '<pre class="line-numbers">',
tableMiddle = '</pre></td><td class="code">',
tableEnd = '</td></tr></tbody></table>',
count = $('span.line', code).length;
count = $('.line', code).length;
for (var i=1;i<=count; i++) {
lineNumbers += '<span class="line-number">'+i+'</span>\n';
}