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 3ec0001 commit 244d3e4Copy full SHA for 244d3e4
root/static/js/syntaxhighlighter.js
@@ -147,15 +147,17 @@ $(function () {
147
).join(', ');
148
pre.find('.syntaxhighlighter .line').filter(selector).addClass('pod-line');
149
}
150
+ });
151
- pre.find('.syntaxhighlighter .gutter .line').each(function(i, el) {
152
+ if (source.length) {
153
+ source.find('.syntaxhighlighter .gutter .line').each(function(i, el) {
154
var res;
155
if (res = el.className.match(/(^|\s)number(\d+)(\s|$)/)) {
156
var id = 'L' + res[2];
157
$(el).contents().wrap('<a href="#'+id+'" id="'+id+'"></a>');
158
159
});
- });
160
+ }
161
162
163
function togglePod() {
0 commit comments