diff options
| author | Matias Niemelä | 2013-05-09 15:58:34 -0400 | 
|---|---|---|
| committer | Misko Hevery | 2013-05-13 16:55:14 -0700 | 
| commit | c8197b44eb0b4d49acda142f4179876732e1c751 (patch) | |
| tree | 8cb855da7edb2b49649c1436e1263bd40d8b2ff7 /docs/src/ngdoc.js | |
| parent | b6e5972eb371412d99fc50def000f3afab5bec79 (diff) | |
| download | angular.js-c8197b44eb0b4d49acda142f4179876732e1c751.tar.bz2 | |
feat(ngdocs): external links to github, plunkr and jsfiddle available for code examples
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 3bcfb196..0b0bb340 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -105,7 +105,7 @@ Doc.prototype = {        IS_URL = /^(https?:\/\/|ftps?:\/\/|mailto:|\.|\/)/,        IS_ANGULAR = /^(api\/)?(angular|ng|AUTO)\./,        IS_HASH = /^#/, -      parts = trim(text).split(/(<pre>[\s\S]*?<\/pre>|<doc:example(\S*).*?>[\s\S]*?<\/doc:example>|<example[^>]*>[\s\S]*?<\/example>)/), +      parts = trim(text).split(/(<pre.*?>[\s\S]*?<\/pre>|<doc:example(\S*).*?>[\s\S]*?<\/doc:example>|<example[^>]*>[\s\S]*?<\/example>)/),        seq = 0,        placeholderMap = {}; @@ -191,9 +191,9 @@ Doc.prototype = {            return placeholder(example.toHtml());          }). -        replace(/^<pre>([\s\S]*?)<\/pre>/mi, function(_, content){ +        replace(/^<pre(.*?)>([\s\S]*?)<\/pre>/mi, function(_, attrs, content){            return placeholder( -            '<pre class="prettyprint linenums">' + +            '<pre'+attrs+' class="prettyprint linenums">' +                content.replace(/</g, '<').replace(/>/g, '>') +                '</pre>');          }). | 
