Skip to content

Escaping needs to occur for hyperlinked content #7

@intel352

Description

@intel352

Optional parameters are not properly escaped when a hyperlink is generated.

Ex:

/**
 * Contact class
 * @param {Customer} [customer] Customer object
 * @param {Profile} [profile] Profile object
 * @constructor
 * @alias module:models/contact~Contact
 */
function Contact(customer, profile) {

Some resulting markdown (invalid, no hyperlink as a result):

    * [new Contact([customer], [profile])](#markdown-header-new-contactcustomer-profile)

Markdown that works:

    * [new Contact(\[customer\], \[profile\])](#markdown-header-new-contactcustomer-profile)

Notice the escaping of the nested square brackets

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions