Have you read the Contributing Guidelines on issues?
Prerequisites
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
Have you read the Contributing Guidelines on issues?
Prerequisites
npm run clearoryarn clearcommand.rm -rf node_modules yarn.lock package-lock.jsonand re-installing packages.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
npm startExpected behavior
The apostrophe would be escaped.
Actual behavior
The apostrophe is written verbatim.
Your environment
Self-service