Skip to content

rehype-autolink-headings adds className to all anchor tags even without headings #86

Discussion options

You must be logged in to vote

Thank you @wooorm @ChristianMurphy.

Turns out that the issue was due to the component-substitution that I have in my [slug.js] file.
This was over-writing all the classnames and replacing them with the substitute component all anchor tags.

I'm really new to Next.js, so I was not able to reduce the problem to a specific file until now. Really Appreciate you help. 🙌🙏

Replies: 3 comments 5 replies

Comment options

You must be logged in to vote
2 replies
@AnweshGangula
Comment options

@ChristianMurphy
Comment options

Comment options

You must be logged in to vote
3 replies
@AnweshGangula
Comment options

@wooorm
Comment options

@AnweshGangula
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by AnweshGangula
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants