From adf85d4598227870950b5f7304276ec6b55e352f Mon Sep 17 00:00:00 2001 From: Hector Hernandez Date: Wed, 25 Mar 2015 12:37:25 +0100 Subject: [PATCH] Added support for markdown in the type section --- lib/parsers/api_param.js | 4 ++-- lib/parsers/api_success.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/parsers/api_param.js b/lib/parsers/api_param.js index 630e66f..f3b0931 100644 --- a/lib/parsers/api_param.js +++ b/lib/parsers/api_param.js @@ -21,7 +21,7 @@ var regExp = { }, oType: { // optional type: {string} b: '\\s*(?:\\{\\s*', // starting with '{', optional surrounding spaces - type: '([a-zA-Z0-9\\.\\/\\\\\\[\\]_-]+)', // 2 + type: '([a-zA-Z0-9\(\)#\\.\\/\\\\\\[\\]_-]+)', // 2 oSize: { // optional size within type: {string{1..4}} b: '\\s*(?:\\{\\s*', // starting with '{', optional surrounding spaces size: '(.+?)', // 3 @@ -132,5 +132,5 @@ module.exports = { path : path, method : 'push', getGroup : getGroup, - markdownFields: [ 'description' ] + markdownFields: [ 'description', 'type' ] }; diff --git a/lib/parsers/api_success.js b/lib/parsers/api_success.js index c0daf31..634c11a 100644 --- a/lib/parsers/api_success.js +++ b/lib/parsers/api_success.js @@ -16,5 +16,5 @@ module.exports = { parse : parse, path : path, method : apiParser.method, - markdownFields: [ 'description' ] + markdownFields: [ 'description', 'type' ] };