diff options
| author | Matias Niemelä | 2013-06-06 01:28:50 -0400 |
|---|---|---|
| committer | Misko Hevery | 2013-06-17 22:00:54 -0700 |
| commit | ef22968810d555f78d3bbf7b5428757690c8cc70 (patch) | |
| tree | 1a19f2649e07406bd1988c4d915deec87073c568 /docs/components/angular-bootstrap/bootstrap-prettify.js | |
| parent | 07ef1667db632d0fd75472f30343255edcebf43b (diff) | |
| download | angular.js-ef22968810d555f78d3bbf7b5428757690c8cc70.tar.bz2 | |
feat(ngdocs): support popover, foldouts and foldover annotations
Diffstat (limited to 'docs/components/angular-bootstrap/bootstrap-prettify.js')
| -rw-r--r-- | docs/components/angular-bootstrap/bootstrap-prettify.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/docs/components/angular-bootstrap/bootstrap-prettify.js b/docs/components/angular-bootstrap/bootstrap-prettify.js index f1c3fccb..dc2a34e2 100644 --- a/docs/components/angular-bootstrap/bootstrap-prettify.js +++ b/docs/components/angular-bootstrap/bootstrap-prettify.js @@ -96,9 +96,12 @@ directive.code = function() { directive.prettyprint = ['reindentCode', function(reindentCode) { return { restrict: 'C', - terminal: true, compile: function(element) { - element.html(window.prettyPrintOne(reindentCode(element.html()), undefined, true)); + var html = element.html(); + //ensure that angular won't compile {{ curly }} values + html = html.replace(/\{\{/g, '<span>{{</span>') + .replace(/\}\}/g, '<span>}}</span>'); + element.html(window.prettyPrintOne(reindentCode(html), undefined, true)); } }; }]; |
