Closed khattakdev closed 4 years ago
He @eKhattak, thanks for opening up an issue! This is a result of the v1 parser thinking that the entire block is JSX when a line begins with JSX. You'd need to add a space before your Link to trigger the inline tokenization. This is something that will be fixed in v2 (#1077).
Since it's not something we plan on fixing in v1, and is fixed in v2 (which has a canary release), I'm going to close this issue.
Subject of the issue
Styling doesn't work if you use
next/link
in.mdx
file without adding any normal words before<Link...
Here's an exampleThis works
But this doesn't work
Your environment
Steps to reproduce
pages/learn/basics/create-nextjs-app/index.mdx
(or any other.mdx
file)Expected behaviour
Styling should Work Properly
Actual behaviour
Styling doesn't work on that line