Skip to content

Broken Markdown Links for Functions Containing Underscores #84

@niall-byrne

Description

@niall-byrne

First of all, thanks for making this, I'd like to use it for my project.

I've hit a snag however with functions containing underscores.

It seems when functions contain underscores in their title, the generated markdown strips the underscore out, leading to links that don't work in the wild.

I have an example here that's replicatable:

# @description Asserts that a variable is an array.
# @arg $1 string The name of the variable to check.
# @exitcode 0 If the assertion succeeded.
# @exitcode 1 If the assertion failed.
# @exitcode 127 If the wrong number of arguments were provided.
# @stderr The error message if the assertion fails.
stdlib_array_assert_is_array() { :; }
## Index

* [stdlib_array_assert_is_array](#stdlibarrayassertisarray)

### stdlib_array_assert_is_array

Asserts that a variable is an array.

#### Arguments

* **$1** (string): The name of the variable to check.

#### Exit codes

* **0**: If the assertion succeeded.
* **1**: If the assertion failed.
* **127**: If the wrong number of arguments were provided.

#### Output on stderr

* The error message if the assertion fails.

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