diff options
| author | Vojta Jina | 2011-11-11 16:40:43 -0800 | 
|---|---|---|
| committer | Igor Minar | 2011-11-13 16:40:31 -0800 | 
| commit | 4afad1da299cadf6761604d42ceb069158201170 (patch) | |
| tree | 62fb752d6ce6a2938cd83a40055710ce8aec9ad4 /docs/src/ngdoc.js | |
| parent | eb01fe593de3f8f2328f54ad4044cd8da679cfc8 (diff) | |
| download | angular.js-4afad1da299cadf6761604d42ceb069158201170.tar.bz2 | |
feat(docs): allow custom attributes on <doc:source>
Allow any attributes, not only jsfiddle...
Diffstat (limited to 'docs/src/ngdoc.js')
| -rw-r--r-- | docs/src/ngdoc.js | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index c5da18e6..3ed9198a 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -117,9 +117,9 @@ Doc.prototype = {                   '</pre></div>';          });        } else if (isDocWidget('example')) { -        text = text.replace(/<doc:source(\s+jsfiddle="[^"]+")?>([\s\S]*)<\/doc:source>/mi, -          function(_, jsfiddle, content){ -            return '<pre class="doc-source"' + (jsfiddle || '') +'>' + +        text = text.replace(/<doc:source(\s+[^>]*)?>([\s\S]*)<\/doc:source>/mi, +          function(_, attrs, content){ +            return '<pre class="doc-source"' + (attrs || '') +'>' +                        htmlEscape(content) +                     '</pre>';            }); | 
