facebook / docusaurus

Easy to maintain open source documentation websites.
https://docusaurus.io
MIT License
55.69k stars 8.34k forks source link

Expected corresponding JSX closing tag for <calculated> ( JSX incorrectly recognized ) #9647

Closed Zzhiter closed 9 months ago

Zzhiter commented 9 months ago

Have you read the Contributing Guidelines on issues?

Prerequisites

Description

I added new content and tried to compile the md file, but the compiler mistakenly recognized my "" text as a JSX element. Is this a BUG?

image

Reproducible demo

No response

Steps to reproduce

Add in the md file

Expected behavior

Expected corresponding JSX closing tag for . (40:103)

Actual behavior

image

Your environment

Self-service

Josh-Cena commented 9 months ago

Please read https://docusaurus.io/blog/preparing-your-site-for-docusaurus-v3#bad-usage-of--1

slorber commented 9 months ago

Please respect our issue template and report bugs appropriately.

This is how MDX works, try in the playground it doesn't compile either: https://mdxjs.com/playground/

If you don't like this behavior you can also opt-in for our experimental CommonMark mode: https://docusaurus.io/docs/markdown-features#mdx-vs-commonmark