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

Markdown does not work inside JSX components #5565

Closed
birdofpreyru opened this issue Sep 13, 2021 · 1 comment
Closed

Markdown does not work inside JSX components #5565

birdofpreyru opened this issue Sep 13, 2021 · 1 comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: working as intended This issue is intended behavior, there's no need to take any action.

Comments

@birdofpreyru
Copy link

🐛 Bug Report

Description

I might be missing somehting, but according to MDX documentation it is legit to use Markdown syntax inside component and HTML tags, i.e. the markup like this <div>This is **bold** word</div> should result in bold being bold, and it does so in MDX Playground. It does not work in MDX docs rendered by Docusaurus 2, where the text wrapped inside comonent seems to be parsed as plain text, rather than Markdown.

I can't find in Docusaurus 2 documentation any mention this is not supposed to work, and I can't find related issue tickets in this repo either.

@birdofpreyru birdofpreyru added bug An error in the Docusaurus core causing instability or issues with its execution status: needs triage This issue has not been triaged by maintainers labels Sep 13, 2021
@lex111
Copy link
Contributor

lex111 commented Sep 15, 2021

We use MDX v1, which does not support Markdown syntax inside JSX, it is easy to check on the appropriate playground https://mdx-git-renovate-babel-monorepo-mdx.vercel.app/playground

image

Closing in favor of #4029 (MDX v2 is currently not ready for production use).

@lex111 lex111 closed this as completed Sep 15, 2021
@Josh-Cena Josh-Cena added closed: working as intended This issue is intended behavior, there's no need to take any action. and removed status: needs triage This issue has not been triaged by maintainers labels Feb 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An error in the Docusaurus core causing instability or issues with its execution closed: working as intended This issue is intended behavior, there's no need to take any action.
Projects
None yet
Development

No branches or pull requests

3 participants