You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have read the console error message carefully (if applicable).
Description
Placing JSX in mdx-code-block works fine on Linux, but when developing on Windows, it directly displays the code block instead.
Reproducible demo
No response
Steps to reproduce
Placing a piece of JSX inside mdx-code-block and running it in a Windows environment can reproduce the issue.
Expected behavior
The card list has been rendered.
Actual behavior
The code block is presented.
Your environment
Public source code:
Public site URL:
Docusaurus version used: 3.1.1
Environment name and version (e.g. Chrome 89, Node.js 16.4):chrome, Node.js 20.9.0
Operating system and version (e.g. Ubuntu 20.04.2 LTS): Windows 10
Self-service
I'd be willing to fix this bug myself.
The text was updated successfully, but these errors were encountered:
wyy0512
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
Mar 27, 2024
I don't know why stackblitz doesn't interpret the one with the mdx-code-block label though
OzakIOne
added
closed: can't repro
This bug is because of some local setup that can't be reproduced.
and removed
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
Mar 27, 2024
That said, it should be fixed by #9897. I don't know if it's part of 3.1.1 though!
Edit: looks like no. So when the next version gets released, it will be fixed. In the meantime, please configure your editor to use LF instead of CRLF.
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clear
oryarn clear
command.rm -rf node_modules yarn.lock package-lock.json
and re-installing packages.Description
Placing JSX in mdx-code-block works fine on Linux, but when developing on Windows, it directly displays the code block instead.
Reproducible demo
No response
Steps to reproduce
Placing a piece of JSX inside mdx-code-block and running it in a Windows environment can reproduce the issue.
Expected behavior
The card list has been rendered.
Actual behavior
The code block is presented.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: