Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Markdown Header

Started by Muut Archive 10 years ago · 6 replies · 619 views
10 years ago

Hi,

I would like when I add #exampleheader at the end of my link , to arrive directly at the header in my page like in github with this link : https://github.com/getgrav/grav#adding-functionality you arrive directly in the chapter "adding-functionality". How can I do that please ? by default it doesn't work

10 years ago

And if I can have the bottom on the left or right for access directly at the header.

10 years ago

You just need to use named anchors within the page, as explained here. Similarly, for a link "to the top" you would add a <a name="top"></a> and <a href="#top">To the top!</a>.

10 years ago

Oh thanks I'm going to look that, but it's supposed to do automatically , isn't it ?

10 years ago

Not really, you'd have to follow the correct syntax to have it "natively". If I recall correctly, that would be:

TXT
# Header1

[Link-name](#Header1)
10 years ago

You would have to enable Markdown Extra in your system.yaml. Syntax should work like this.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2277 9 years ago
Archive · by Muut Archive, 9 years ago
2 1496 9 years ago
Archive · by Muut Archive, 9 years ago
2 4745 9 years ago
Archive · by Muut Archive, 9 years ago
1 3555 9 years ago
Archive · by Muut Archive, 9 years ago
3 1619 9 years ago