Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Markdown Header

Started by Muut Archive 9 years ago · 6 replies · 511 views
9 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

9 years ago

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

9 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>.

9 years ago

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

9 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)
9 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 1333 9 years ago
Archive · by Muut Archive, 9 years ago
2 924 9 years ago
Archive · by Muut Archive, 9 years ago
2 4055 9 years ago
Archive · by Muut Archive, 9 years ago
1 2933 9 years ago
Archive · by Muut Archive, 9 years ago
3 1110 9 years ago