diff --git a/docs/spec/ngdocSpec.js b/docs/spec/ngdocSpec.js index 46b05aef..68d3700f 100644 --- a/docs/spec/ngdocSpec.js +++ b/docs/spec/ngdocSpec.js @@ -307,10 +307,10 @@ describe('ngdoc', function(){ describe('@description', function(){ it('should support pre blocks', function(){ - var doc = new Doc("@description
abc"); + var doc = new Doc("@description
abc"); doc.parse(); expect(doc.description). - toBe('
abc
<b>abc</b>
foo
' + - 'abc
abc
foo
' + - 'cba
cba
/)) {
text = text.replace(/^([\s\S]*)<\/pre>/mi, function(_, content){
- return '' +
+ var clazz = 'brush: js;'
+ if (content.match(/\<\w/)) {
+ // we are HTML
+ clazz += ' html-script: true;';
+ }
+ return '' +
content.replace(//g, '>') +
'';
});