apidoc-core
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -234,2 +234,13 @@ var _ = require('lodash'); | ||
values[field] = values[field].replace(/(\r\n|\n|\r)/g, ' '); | ||
values[field] = values[field].trim(); | ||
// TODO: Little hacky, not sure to handle this here or in template | ||
if ( elementParser.markdownRemovePTags && | ||
elementParser.markdownRemovePTags.length > 0 && | ||
elementParser.markdownRemovePTags.indexOf(field) !== -1 | ||
) { | ||
// Remove p-Tags | ||
values[field] = values[field].replace(/(<p>|<\/p>)/g, ''); | ||
} | ||
} | ||
@@ -236,0 +247,0 @@ } |
@@ -19,3 +19,4 @@ // Same as @apiParam | ||
method : apiParser.method, | ||
markdownFields: [ 'description', 'type' ] | ||
markdownFields: [ 'description', 'type' ], | ||
markdownRemovePTags: [ 'type' ] | ||
}; |
@@ -135,3 +135,4 @@ var trim = require('../utils/trim'); | ||
getGroup : getGroup, | ||
markdownFields: [ 'description', 'type' ] | ||
markdownFields: [ 'description', 'type' ], | ||
markdownRemovePTags: [ 'type' ] | ||
}; |
@@ -19,3 +19,4 @@ // Same as @apiParam | ||
method : apiParser.method, | ||
markdownFields: [ 'description', 'type' ] | ||
markdownFields: [ 'description', 'type' ], | ||
markdownRemovePTags: [ 'type' ] | ||
}; |
{ | ||
"name": "apidoc-core", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Core parser library to generate apidoc result following the apidoc-spec", | ||
@@ -36,4 +36,4 @@ "author": "Peter Rottmann <rottmann@inveris.de>", | ||
"dependencies": { | ||
"lodash": "~3.8.0", | ||
"semver": "~4.3.4", | ||
"lodash": "~3.10.1", | ||
"semver": "~5.1.0", | ||
"wrench": "~1.5.8" | ||
@@ -43,7 +43,7 @@ }, | ||
"apidoc-example": "*", | ||
"jshint": "~2.7.0", | ||
"markdown-it": "^4.2.1", | ||
"mocha": "~2.2.4", | ||
"npm-check-updates": "^1.5.1", | ||
"should": "~6.0.1" | ||
"jshint": "~2.9.1-rc1", | ||
"markdown-it": "^5.0.2", | ||
"mocha": "~2.3.4", | ||
"npm-check-updates": "^2.5.4", | ||
"should": "~8.0.1" | ||
}, | ||
@@ -50,0 +50,0 @@ "jshintConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
93269
2574
+ Addedlodash@3.10.1(transitive)
+ Addedsemver@5.1.1(transitive)
- Removedlodash@3.8.0(transitive)
- Removedsemver@4.3.6(transitive)
Updatedlodash@~3.10.1
Updatedsemver@~5.1.0