mirror of
https://github.com/WatchOutNewsAgency/wona.github.com.git
synced 2026-01-01 01:16:26 +00:00
fixed github line numbering issue, fixed a few bugs in code block styling
This commit is contained in:
@ -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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user