How to Link to a Specific Part in a Post

KevKev Posts: 387 admin

Crafting your table of contents is optional. If you want one, make your link with the usual Markdown format with text inside the [ and ] brackets, and anchor point inside the ( and ) parenthesis immediately after. Example:

[Awesome Section](#1)

Which will look like this:

Awesome Section

When you get to the awesome section in your post, add this HTML directly above the paragraph:

<a id="1"></a>

Clicking the link in the post will then take your reader directly to the awesome section. If you want multiple items in your table of contents, you need your ID numbers to be #2, #3, and so on.

You can also create a URL to send readers directly to the awesome section of the post by adding the #1 to the end of your link. For example, in this post the link would be:

https://forums.eosgo.io/discussion/1440/how-to-link-to-a-specific-part-in-a-post/#1

Here's the way to test it, clicking the link above should take you all the way down:

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

-

To here.

Sign In or Register to comment.