We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85799aa commit 1872b03Copy full SHA for 1872b03
1 file changed
docs/app/js/code.js
@@ -5,11 +5,11 @@ angular.module('code', [])
5
restrict: 'E',
6
terminal: true,
7
compile: function(element) {
8
- var linenums = element.hasClass('linenum');// || element.parent()[0].nodeName === 'PRE';
+ var linenums = element.hasClass('linenum');
9
var match = /lang-(\S+)/.exec(element[0].className);
10
var lang = match && match[1];
11
var html = element.html();
12
element.html(window.prettyPrintOne(html, lang, linenums));
13
}
14
};
15
-});
+});
0 commit comments