Take the 2-minute tour ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I develope an open source application under the SourceForge web. I would like to be able to link to anchors (headline ids) inside a wiki page.

The Markdown Syntax Guide does not mention how to do that. I looked at the HTML code of one of my existing wiki pages and there are no ids assigned to headlines by default.

I suppose there might be a way to do what I want as this seems to be an important feature. Besides, the Markdown Syntax Guide itself has ids assigned.

Thanks for your help!

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

You can use standard HTML to insert an anchor to the text:

<span id="myHeading">My heading</span>
======================================

and then link to it like this:

[My heading](./#myHeading)
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.