1 | var trim = require('../utils/trim');
|
2 | var unindent = require('../utils/unindent');
|
3 |
|
4 | function 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 | */
|
23 | module.exports = {
|
24 | parse : parse,
|
25 | path : 'local',
|
26 | method: 'insert',
|
27 | markdownFields: [ 'deprecated.content' ],
|
28 | markdownRemovePTags: [ 'deprecated.content' ]
|
29 | };
|