We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 317a1be commit a7f37ffCopy full SHA for a7f37ff
root/static/js/syntaxhighlighter.js
@@ -146,15 +146,17 @@ $(function () {
146
).join(', ');
147
pre.find('.syntaxhighlighter .line').filter(selector).addClass('pod-line');
148
}
149
+ });
150
- pre.find('.syntaxhighlighter .gutter .line').each(function(i, el) {
151
+ if (source.length) {
152
+ source.find('.syntaxhighlighter .gutter .line').each(function(i, el) {
153
var res;
154
if (res = el.className.match(/(^|\s)number(\d+)(\s|$)/)) {
155
var id = 'L' + res[2];
156
$(el).contents().wrap('<a href="#'+id+'" id="'+id+'"></a>');
157
158
});
- });
159
+ }
160
161
162
function togglePod() {
0 commit comments