7.2 Markdown

JSDoc is written in Markdown, though it may include HTML when necessary.

Note that tools that automatically extract JSDoc (e.g. JsDossier) will oftenignore plain text formatting, so if you did this:

  1. /**
  2. * Computes weight based on three factors:
  3. * items sent
  4. * items received
  5. * last timestamp
  6. */

it would come out like this:

  1. Computes weight based on three factors: items sent items received last timestamp

Instead, write a Markdown list:

  1. /**
  2. * Computes weight based on three factors:
  3. *
  4. * - items sent
  5. * - items received
  6. * - last timestamp
  7. */