UNPKG

499 BJavaScriptView Raw
1var trim = require('../utils/trim');
2var unindent = require('../utils/unindent');
3
4function parse(content) {
5 var deprecated = trim(content);
6
7 if (deprecated.length > 0) {
8 return {
9 deprecated: {
10 content: unindent(deprecated)
11 }
12 };
13 }
14
15 return {
16 deprecated: true
17 };
18}
19
20/**
21 * Exports
22 */
23module.exports = {
24 parse : parse,
25 path : 'local',
26 method: 'insert',
27 markdownFields: [ 'deprecated.content' ],
28 markdownRemovePTags: [ 'deprecated.content' ]
29};