Abluescarab
Abluescarab

Reputation: 547

Assign a hidden name to a GitHub anchor for easier linking?

In my repo's wiki, I have a header that is an actual function prototype:

### void SomeFunction(string param1, int param2)

Is it possible to assign a special name to this so I can link to it easier? Something like MultiMarkdown's labels. For example:

### [void SomeFunction(string param1, int param2) | SomeFunctionAnchor]
### void SomeFunction(string param1, int param2) [SomeFunctionAnchor]
[Click this.](#SomeFunctionAnchor)

If not, is there a way to do this in any of GitHub's other markdown methods (i.e., AsciiDoc, Creole, MediaWiki, Org-mode, Pod, RDoc, Textile, ReStructuredText)?

Upvotes: 0

Views: 74

Answers (1)

user3041855
user3041855

Reputation:

like this.

### <a name="SomeFunctionAnchor">void SomeFunction(string param1, int param2)
[Click this.](#SomeFunctionAnchor)

Upvotes: 2

Related Questions