From c8197b44eb0b4d49acda142f4179876732e1c751 Mon Sep 17 00:00:00 2001 From: Matias Niemelä Date: Thu, 9 May 2013 15:58:34 -0400 Subject: feat(ngdocs): external links to github, plunkr and jsfiddle available for code examples --- docs/src/ngdoc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/src/ngdoc.js') 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(/(
[\s\S]*?<\/pre>|[\s\S]*?<\/doc:example>|]*>[\s\S]*?<\/example>)/),
+      parts = trim(text).split(/([\s\S]*?<\/pre>|[\s\S]*?<\/doc:example>|]*>[\s\S]*?<\/example>)/),
       seq = 0,
       placeholderMap = {};
 
@@ -191,9 +191,9 @@ Doc.prototype = {
 
           return placeholder(example.toHtml());
         }).
-        replace(/^
([\s\S]*?)<\/pre>/mi, function(_, content){
+        replace(/^([\s\S]*?)<\/pre>/mi, function(_, attrs, content){
           return placeholder(
-            '
' +
+            '' +
               content.replace(//g, '>') +
               '
'); }). -- cgit v1.2.3