fixed github line numbering issue, fixed a few bugs in code block styling
This commit is contained in:
parent
02433114c5
commit
04586299b1
2 changed files with 19 additions and 14 deletions
|
@ -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';
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue