gatsby-digital-garden icon indicating copy to clipboard operation
gatsby-digital-garden copied to clipboard

Error in Table of Contents linking (linking to headings/places within a note)

Open Am3ra opened this issue 4 years ago • 1 comments

Hello all.

I am experiencing an issue where internal links (links pointing to a place internal to the document) are not working. The issue is most clear when displaying a Table of contents such as those created by the Markdown All in One extension.

An example of this, is live on my personal site.

The code example of this is: [Contents of the Guide](#contents-of-the-guide) Where ## Contents of the Guide is the heading being linked to.

Any help would be appreciated.

Am3ra avatar Sep 19 '20 20:09 Am3ra

Although I haven't looked in depth at the architecture of this repo, I think this discussion on the mdx.js repo might be relevant, and as a result this plugin for rehype.js should probably be used. Going to look into it more.

Am3ra avatar Sep 19 '20 20:09 Am3ra