Skip to content

Commit

Permalink
Adding excludeTags to markdown config.
Browse files Browse the repository at this point in the history
  • Loading branch information
Billiam committed Mar 10, 2013
1 parent f90f631 commit 282fc16
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions plugins/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
var conf = env.conf.markdown;
var defaultTags = [ "classdesc", "description", "params", "properties", "returns" ];
var parse = require('jsdoc/util/markdown').getParser();
var tags;
var tags = [];
var excludeTags = [];

/**
* Process the markdown source in a doclet. The properties that should be
Expand All @@ -36,15 +37,16 @@ function process(doclet) {
// set up the list of "tags" (properties) to process
if (conf && conf.tags) {
tags = conf.tags.slice();

defaultTags.forEach(function(tag) {
if (tags.indexOf(tag) === -1) {
tags.push(tag);
}
});
} else {
tags = defaultTags;
}
// set up the list of default tags to exclude from processing
if (conf && conf.excludeTags) {
excludeTags = conf.excludeTags.slice();
}
defaultTags.forEach(function(tag) {
if (excludeTags.indexOf(tag) === -1 && tags.indexOf(tag) === -1) {
tags.push(tag);
}
});

exports.handlers = {
/**
Expand Down

0 comments on commit 282fc16

Please sign in to comment.