Implemented auto-linking of local function definitions.

Eg. `test/1` => [`test/1`](#test/1)