Anchor links not working

I have updated this blog post to include a table of contents with anchor links, but anchor links are not working: Apps de Meditación y Mindfulness: Revisión y análisis de la oferta actual — Javier Nanni

Not sure if I’m getting sth about the syntax wrong.

Please help :slight_smile:

It’s almost there! Those anchor links are automatically generated, so the best way to find out what they are would be to view the source code of the page and check. So for example, you’ll see these header tags on your page:

<h2 id="1-introducción">1. Introducción</h2>

<h3 id="1-1-meditación-y-mindfulness-para-el-público-general">1.1. Meditación y <em>Mindfulness</em> para el público general</h3>

In that case, your anchor tags would be what you see in the id="" attribute. So the first link should be:

[1. Introducción](#1-introducción)

If you were to guess, I believe anchors will be all lowercase, replace spaces with hypens, and will have no punctuation.

Duh! I should have thought of doing that :sweat_smile:

I can confirm this is now working. Thanks @matt !!

1 Like

No problem! :relaxed: