diff --git a/packages/doxdox-renderer-bootstrap/src/index.ts b/packages/doxdox-renderer-bootstrap/src/index.ts index fd634ee..06ddd60 100644 --- a/packages/doxdox-renderer-bootstrap/src/index.ts +++ b/packages/doxdox-renderer-bootstrap/src/index.ts @@ -46,6 +46,9 @@ ${md ...method.params.map(({ name, types, description }) => [ name, `${types + .map(type => + type.replace(//, '>') + ) .map(type => mdTypes.renderInline(type)) .join(', ')}`, description || '' @@ -65,6 +68,7 @@ ${ ${method.returns.map( param => `

${param.types + .map(type => type.replace(//, '>')) .map(type => mdTypes.renderInline(type)) .join(', ')}

diff --git a/packages/doxdox-renderer-dash/src/index.ts b/packages/doxdox-renderer-dash/src/index.ts index c0c9bf0..3e4f945 100644 --- a/packages/doxdox-renderer-dash/src/index.ts +++ b/packages/doxdox-renderer-dash/src/index.ts @@ -68,6 +68,7 @@ ${md ...method.params.map(({ name, types, description }) => [ name, `${types + .map(type => type.replace(//, '>')) .map(type => mdTypes.renderInline(type)) .join(', ')}`, description || '' @@ -85,6 +86,7 @@ ${ ${method.returns.map( param => `

${param.types + .map(type => type.replace(//, '>')) .map(type => mdTypes.renderInline(type)) .join(', ')}

diff --git a/packages/doxdox-renderer-github-wiki/src/index.ts b/packages/doxdox-renderer-github-wiki/src/index.ts index bdac959..297007d 100644 --- a/packages/doxdox-renderer-github-wiki/src/index.ts +++ b/packages/doxdox-renderer-github-wiki/src/index.ts @@ -22,7 +22,9 @@ ${markdownTable([ ['Name', 'Types', 'Description'], ...method.params.map(({ name, types, description }) => [ name, - types.join(', '), + types + .map(type => type.replace(//, '>')) + .join(', '), description || '' ]) ])}` @@ -34,7 +36,9 @@ ${ ? `### Returns ${method.returns.map( - param => `${param.types.join(', ')} + param => `${param.types + .map(type => type.replace(//, '>')) + .join(', ')} ${param.description || ''}` )}` : '' diff --git a/packages/doxdox-renderer-markdown/src/index.ts b/packages/doxdox-renderer-markdown/src/index.ts index 23116cf..41e051d 100644 --- a/packages/doxdox-renderer-markdown/src/index.ts +++ b/packages/doxdox-renderer-markdown/src/index.ts @@ -16,7 +16,9 @@ ${markdownTable([ ['Name', 'Types', 'Description'], ...method.params.map(({ name, types, description }) => [ name, - types.join(', '), + types + .map(type => type.replace(//, '>')) + .join(', '), description || '' ]) ])}` @@ -28,7 +30,9 @@ ${ ? `### Returns ${method.returns.map( - param => `${param.types.join(', ')} + param => `${param.types + .map(type => type.replace(//, '>')) + .join(', ')} ${param.description || ''}` )}` : '' diff --git a/packages/doxdox-renderer-pdf/src/index.ts b/packages/doxdox-renderer-pdf/src/index.ts index 7ee24f6..3d7a190 100644 --- a/packages/doxdox-renderer-pdf/src/index.ts +++ b/packages/doxdox-renderer-pdf/src/index.ts @@ -42,6 +42,7 @@ ${md ...method.params.map(({ name, types, description }) => [ name, `${types + .map(type => type.replace(//, '>')) .map(type => mdTypes.renderInline(type)) .join(', ')}`, description || '' @@ -59,6 +60,7 @@ ${ ${method.returns.map( param => `

${param.types + .map(type => type.replace(//, '>')) .map(type => mdTypes.renderInline(type)) .join(', ')}