From 4afad1da299cadf6761604d42ceb069158201170 Mon Sep 17 00:00:00 2001 From: Vojta Jina Date: Fri, 11 Nov 2011 16:40:43 -0800 Subject: feat(docs): allow custom attributes on Allow any attributes, not only jsfiddle... --- docs/src/ngdoc.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/src') 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 = { ''; }); } else if (isDocWidget('example')) { - text = text.replace(/([\s\S]*)<\/doc:source>/mi, - function(_, jsfiddle, content){ - return '
' +
+        text = text.replace(/]*)?>([\s\S]*)<\/doc:source>/mi,
+          function(_, attrs, content){
+            return '
' +
                       htmlEscape(content) +
                    '
'; }); -- cgit v1.2.3