Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Long Text Markdown uses Autolinks, and is broken in MDX v2. Should use links or references instead. #393

Open
bosung90 opened this issue Dec 24, 2023 · 0 comments

Comments

@bosung90
Copy link

I get an error when on NextJS14 during build when trying to render Long Text using MDXRemote from next-mdx-remote/rsc

reference:
https://github.com/micromark/mdx-state-machine#723-autolinks

Error message when building on NextJS14

Unexpected character `/` (U+002F) before local name, expected a character that can start a name, such as a letter, `$`, or `_` (note: to create a link in MDX, use `[text](url)`)

What I put in Long Text
See https://example.com for more information

What Long Text returns as markdown text
See <https://example.com> for more information

What should be returned instead
See [example.com](https://example.com) for more information.

@bosung90 bosung90 changed the title Long Text Markdown url is wrapped in <> instead of [text](url) and breaks in MDX v2 Long Text Markdown uses Autolinks, and is broken in MDX v2. Should use links or references instead. Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant