diff options
| author | Igor Minar | 2011-01-19 13:02:50 -0800 |
|---|---|---|
| committer | Misko Hevery | 2011-01-19 15:53:58 -0800 |
| commit | 2c0f7ffe3af2b2c7c84cea49456728d1ac9b3bfe (patch) | |
| tree | d0cbca4126763df189c25234334490690aa41b60 /docs/spec | |
| parent | a5eb3ed107034cce5b7de3ec3f8a43ff3a379fa1 (diff) | |
| download | angular.js-2c0f7ffe3af2b2c7c84cea49456728d1ac9b3bfe.tar.bz2 | |
ngdoc should escape content of pre in markdown
Diffstat (limited to 'docs/spec')
| -rw-r--r-- | docs/spec/ngdocSpec.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/spec/ngdocSpec.js b/docs/spec/ngdocSpec.js index cf469063..4abaf0c4 100644 --- a/docs/spec/ngdocSpec.js +++ b/docs/spec/ngdocSpec.js @@ -62,12 +62,12 @@ describe('ngdoc', function(){ toEqual('<p><tt><angular/></tt></p>'); }); - it('should not replace anything in <pre>', function(){ - expect(markdown('bah x\n<pre>\nangular.k\n</pre>\n asdf x')). + it('should not replace anything in <pre>, but escape the html escape the content', function(){ + expect(markdown('bah x\n<pre>\n<b>angular</b>.k\n</pre>\n asdf x')). toEqual( '<p>bah x</p>' + '<div ng:non-bindable><pre class="brush: js; html-script: true;">\n' + - 'angular.k\n' + + '<b>angular</b>.k\n' + '</pre></div>' + '<p>asdf x</p>'); }); |
