Kristin Gannon
Kristin Gannon

Reputation: 99

Make an anchor link to a section of a separate page in markdown

I'm making myself a personal wiki of sorts using markdown. I want to go from the index page (foods.md) to a section of another page (fruit.md).

My problem is that the anchor link only takes me to the top of the Fruit page, not down into the Apples section.

Foods page:

* [Fruit](fruit.md)
* [Apples](fruit.md#apples)

Fruit.md:

#Fruit
...lots of text...
...more text...

# <a name="apples"></a>Apples
...info about apples...

Can I make anchor links to parts of other/different pages?

Upvotes: 0

Views: 370

Answers (1)

klml
klml

Reputation: 1768

Sorry, it works for me, with markdown extra.

But you can try the following Alternativ with a html-ID

<h1 id="apples">Apples</h1>

Or in markdown extra

# Apples {#apples}

Upvotes: 1

Related Questions