npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Add anchor markdown when write package documentation

I write a documentation for a package that I create, and I write some anchor system in markdown documentation but it don’t works.

You can find an example :

# Summary

- [Button](#Button)

### Button

If you have some advice :slight_smile:
Thanks a lot

That looks like it should work to me. Where are you viewing the rendered markdown that is not working? (On for a published package?)

You might need to use [...](#button) (with a lowercase “b”) though.