vmarchaud / jsdoc-http-plugin

Document your http endpoints with JSDoc
MIT License
40 stars 10 forks source link

Add escaping for parameter type #15

Closed Bitluck closed 5 years ago

Bitluck commented 5 years ago

Bug with displaying array types, like:

@body {string[]} body_string_params - Array of string params     
@body {Object[]} body_object_params - Array of object params

When an array is passed as a type, the angle brackets are perceived as part of the HTML document. In HTML, it looks like:

<td class="type">
  Array.
  <object></object>
</td>

Actual result: image Expected result: image

vmarchaud commented 5 years ago

Thanks a lot for making a PR for that ! I've published the version 0.3.1 with your fix.