When running Docusaurus with this plugin, all links are erroneously reported as broken. That's because "id" attributes on vanilla HTML elements are not automatically collected by Docusaurus. This PR fixes that by informing Docusaurus about the new anchor (the span with the id attribute) generated by the AnchorLink component.
And also I switched out the vanilla "a" for Docusaurus' Link component, for consistency mostly.
When running Docusaurus with this plugin, all links are erroneously reported as broken. That's because "id" attributes on vanilla HTML elements are not automatically collected by Docusaurus. This PR fixes that by informing Docusaurus about the new anchor (the span with the id attribute) generated by the AnchorLink component.
And also I switched out the vanilla "a" for Docusaurus' Link component, for consistency mostly.