diff --git a/plugins/markdown.js b/plugins/markdown.js index 8f5cd043..d0b5de01 100644 --- a/plugins/markdown.js +++ b/plugins/markdown.js @@ -16,7 +16,8 @@ var defaultTags = [ 'params', 'properties', 'returns', - 'see' + 'see', + 'summary' ]; var hasOwnProp = Object.prototype.hasOwnProperty; var parse = require('jsdoc/util/markdown').getParser(); diff --git a/plugins/test/fixtures/markdown.js b/plugins/test/fixtures/markdown.js index 8977eccd..4ee832ed 100644 --- a/plugins/test/fixtures/markdown.js +++ b/plugins/test/fixtures/markdown.js @@ -19,6 +19,7 @@ function bar() {} * @property {string} value - Value of myParam. * @return {MyClass} Class instance. * @see [Example Inc.](http://example.com) + * @summary My class. */ function MyClass(myParam) { this.value = myParam; diff --git a/plugins/test/specs/markdown.js b/plugins/test/specs/markdown.js index bcd4d0ef..8c8d74c0 100644 --- a/plugins/test/specs/markdown.js +++ b/plugins/test/specs/markdown.js @@ -24,7 +24,8 @@ describe('markdown plugin', function() { myClass.params[0].description, myClass.properties[0].description, myClass.returns[0].description, - myClass.see + myClass.see, + myClass.summary ].forEach(function(value) { // if we processed the value, it should be wrapped in a

tag expect( /^

(?:.+)<\/p>$/.test(value) ).toBe(true);