jsdoc3/jsdoc — pull request #262 by mathematicalcoffee (2012-11-21 00:01:36+00:00)
Title: jsdoc3/jsdoc#259: protect underscores in {@link} tags from markdown

Fix for jsdoc3/jsdoc#259.

Underscores in `{@link }` tags should *not* be converted by either markdown parser.

E.g.:

> {@link MyClass#_x} and {@link MyClass#_y}

should *not* be turned into

> {@link MyClass#x and {@link MyClassy}

### Changes

* rhino_modules/jsdoc/util/markdown.js
+ deleted the global `var conf = env.conf.markdown;` and replaced it with a *local* assignment in `getParser()`, because otherwise attempts to change the configuration in tests will fail
+ protect underscores that occur within `{@link ... }` with a leading backslash - markdown will then
ignore these (and also removes the slashes afterwards).
* test/specs/jsdoc/util/markdown.js
+ added test for evilstreak parser
+ added test for gfm parser