Jump to content

Adding anchor links in Markdown to create a table of contents?

Recommended Posts

Hello, 

I am writing a long blog post and I would like to put in a 'contents' section  with anchor links to different parts of the post and was wondering if this would be possible to do using Markdown? Ideally I would like the contents section to look like it does in this blog post: https://katescott.co/blog/flodesk-email-marketing

I know how to add anchor links and have created a contents section using links and code blocks before (https://www.moganddogtravels.com/blogs/getting-a-chinese-visa-in-kuala-lumpur) but it is very spread out.  I don't  even know whether it is possible to do this in Markdown or whether I need to be using something else.  I tried adding the following after reading some suggestions online but whilst it comes up as a link, it doesn't jump to the anchor link I have created. 

### <a href="#vegetarian-starters">Turkish vegetarian starters</a>

I am a total newbie to coding so don't know what I am doing at all! Any help would be greatly appreciated!

Thanks in advance!

Link to comment
  • Replies 3
  • Views 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

  • 2 years later...
On 1/31/2021 at 5:32 PM, SashK said:

Hello, 

I am writing a long blog post and I would like to put in a 'contents' section  with anchor links to different parts of the post and was wondering if this would be possible to do using Markdown? Ideally I would like the contents section to look like it does in this blog post: https://katescott.co/blog/flodesk-email-marketing

I know how to add anchor links and have created a contents section using links and code blocks before (https://www.moganddogtravels.com/blogs/getting-a-chinese-visa-in-kuala-lumpur) but it is very spread out.  I don't  even know whether it is possible to do this in Markdown or whether I need to be using something else.  I tried adding the following after reading some suggestions online but whilst it comes up as a link, it doesn't jump to the anchor link I have created. 

### <a href="#vegetarian-starters">Turkish vegetarian starters</a>

I am a total newbie to coding so don't know what I am doing at all! Any help would be greatly appreciated!

Thanks in advance!

Can I ask how you managed to create your Table of Contents? It looks like you managed!

Link to comment
On 7/18/2023 at 10:37 PM, Elena5 said:

Can I ask how you managed to create your Table of Contents? It looks like you managed!

This site use Text Block + Anchor links only

https://support.squarespace.com/hc/en-us/articles/207135178-Creating-anchor-links

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.