Skip to content
Lloyd Brookes edited this page Nov 17, 2016 · 3 revisions
  1. Why am I getting errors?

As a general rule, if it works in jsdoc it will work in jsdoc2md. Test your source with jsdoc -X my-code.js - if that fails it will fail in jsdoc2md too.

  1. Why isn't my namepath being converted to a link?

All tags requiring a namepath argument, for example @requires module:something, should render as a link. For it to work, the namepath specified must be valid and point to an identifier in one of the files being parsed by jsdoc2md. To get a list of the valid namepaths in your sourcecode, run jsdoc2md --namepaths lib/*.js.

  1. Could the output use backticks instead of <code>?

In some cases, yes. In other cases, no. The issue is that markdown within markdown is not valid.

So, this is valid:

`something`

This is not:

one         | two 
============|==============
`something` | another thing

Rather than have complex logic to determine whether we have a valid context to use backticks, we use <code> which is valid throughout.

Clone this wiki locally