aboutsummaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/collect.js2
-rw-r--r--docs/spec/collectSpec.js5
2 files changed, 6 insertions, 1 deletions
diff --git a/docs/collect.js b/docs/collect.js
index 2cb85fe2..d9556747 100644
--- a/docs/collect.js
+++ b/docs/collect.js
@@ -213,7 +213,7 @@ function returnsTag(doc, name, value) {
if (match) {
var tag = {
type: match[1],
- description: match[2] || false
+ description: markdownNoP(match[2]) || false
};
} else {
throw "[" + doc.raw.file + ":" + doc.raw.line +
diff --git a/docs/spec/collectSpec.js b/docs/spec/collectSpec.js
index 7777e8f4..b61097f6 100644
--- a/docs/spec/collectSpec.js
+++ b/docs/spec/collectSpec.js
@@ -170,6 +170,11 @@ describe('collect', function(){
TAG.returns(doc, 'returns', '{string} descrip tion');
expect(doc.returns).toEqual({type: 'string', description: 'descrip tion'});
});
+
+ it('should transform description of @returns with markdown', function() {
+ TAG.returns(doc, 'returns', '{string} descrip *tion*');
+ expect(doc.returns).toEqual({type: 'string', description: 'descrip <em>tion</em>'});
+ });
});
describe('@description', function(){