apidoc-light
Version:
RESTful web API Documentation Generator
29 lines (24 loc) • 461 B
JavaScript
const unindent = require('../utils/unindent');
function parse (content) {
const deprecated = content.trim();
if (deprecated.length > 0) {
return {
deprecated: {
content: unindent(deprecated),
},
};
}
return {
deprecated: true,
};
}
/**
* Exports
*/
module.exports = {
parse: parse,
path: 'local',
method: 'insert',
markdownFields: ['deprecated.content'],
markdownRemovePTags: ['deprecated.content'],
};