Dev.to uses standard markdown. Define an anchor you want to link to right before the line you want to refer:
<a name="anchor-name-1"></a>
and place your link:
[link text](#anchor-name-1)
If you want to link to a remote url you can also do this:
[link text](https://[...]#anchor-name-1)
Try it yourself π
[Try it yourself](#try-yourself) π
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
<a name="try-yourself"></a>
# If you got here it worked! π€ͺ
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
If you got here it worked! π€ͺ
.
.
.
.
.
.
.
.
.
.
.
.
Any ideas or feedback?
I would like to know your thoughts and experience related to this topic.
Do you like this article? Follow me on Twitter and donβt miss any future posts.
Top comments (3)
Another way is to use the header words separated by dashes:
Can be anchored this way:
Although it's very cumbersome because it depends on the words and characters. In this regard, your way is very simpler :)
Is this possible only on dev.to or is it a standard markdown thing too? Thank you for this! π
It's standard Markdown