Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 8e404c4

Browse files
docs(directives): remove line numbers from code blocks
1 parent 7570e9f commit 8e404c4

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

docs/app/assets/css/docs.css

-4
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,6 @@ h1,h2,h3,h4,h5,h6 {
184184
}
185185

186186
pre {
187-
padding: 15px;
188-
border: 1px solid #ddd;
189-
border-radius: 5px;
190-
display: block;
191187
white-space: pre-wrap;
192188
word-break: normal;
193189
}

docs/app/src/directives.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ angular.module('directives', [])
2121
restrict: 'E',
2222
terminal: true,
2323
compile: function(element) {
24-
var linenums = element.hasClass('linenum') || element.parent()[0].nodeName === 'PRE';
24+
var linenums = element.hasClass('linenum');// || element.parent()[0].nodeName === 'PRE';
2525
var match = /lang-(\S)+/.exec(element.className);
2626
var lang = match && match[1];
2727
var html = element.html();

0 commit comments

Comments
 (0)