-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondifficulty: starterIssues that are starter difficulty level, e.g. minimal tweaking with a clear test plan.Issues that are starter difficulty level, e.g. minimal tweaking with a clear test plan.
Description
Have you read the Contributing Guidelines on issues?
- I have read the Contributing Guidelines on issues.
Prerequisites
- I'm using the latest version of Docusaurus.
- I have tried the
npm run clearoryarn clearcommand. - I have tried
rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages. - I have tried creating a repro with https://new.docusaurus.io. (Can repro on StackBlitz; CodeSandbox filters apostrophes.)
- I have read the console error message carefully (if applicable).
Description
For example, creating a file called "Beginner's Guide.md" causes it to be written to registry.js verbatim:
So, we obviously have a syntax error there.
Reproducible demo
No response
Steps to reproduce
- Create a file with an apostrophe in it's name, such as "Beginner's Guide.md"
- Run
npm start
Expected behavior
The apostrophe would be escaped.
Actual behavior
The apostrophe is written verbatim.
Your environment
- Docusaurus version used: Whichever the latest one published to NPM is as of 2023-07-20
Self-service
- I'd be willing to fix this bug myself.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugAn error in the Docusaurus core causing instability or issues with its executionAn error in the Docusaurus core causing instability or issues with its executiondifficulty: starterIssues that are starter difficulty level, e.g. minimal tweaking with a clear test plan.Issues that are starter difficulty level, e.g. minimal tweaking with a clear test plan.

