From f00b1578415ff45e5ce21de79e7bec00ab4dea51 Mon Sep 17 00:00:00 2001 From: Igor Minar Date: Sun, 6 Feb 2011 20:44:55 -0800 Subject: @property should require type and description should be markdownified --- docs/src/ngdoc.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'docs/src/ngdoc.js') diff --git a/docs/src/ngdoc.js b/docs/src/ngdoc.js index 18ea523b..153e6f90 100644 --- a/docs/src/ngdoc.js +++ b/docs/src/ngdoc.js @@ -157,14 +157,14 @@ Doc.prototype = { } else if(atName == 'requires') { self.requires.push(text); } else if(atName == 'property') { - var match = text.match(/^({(\S+)}\s*)?(\S+)(\s+(.*))?/); + var match = text.match(/^{(\S+)}\s+(\S+)(\s+(.*))?/); if (!match) { throw new Error("Not a valid 'property' format: " + text); } var property = { - type: match[2], - name: match[3], - description: match[5] || '' + type: match[1], + name: match[2], + description: self.markdown(text.replace(match[0], match[4])) }; self.properties.push(property); } else { @@ -445,7 +445,7 @@ Doc.prototype = { }); dom.h('Properties', this.properties, function(property){ dom.h(property.name, function(){ - dom.text(property.description); + dom.html(property.description); dom.h('Example', property.example, dom.html); }); }); -- cgit v1.2.3