Adding internal links

Would you please let me know whether there is a way in prosemirror that I can implement an internal link to headings? Thanks

You could add some kind of id attribute to headings, render them as DOM ids, and add a mark type (or use regular link marks with anchor links) to link to them.