Auto-generated title incorrect when not using Unix newline encoding (LF) #7156
Labels
bug
An error in the Docusaurus core causing instability or issues with its execution
closed: duplicate
This issue or pull request already exists in another issue or pull request
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
Page titles will be rendered incorrectly depending on which newline format has been chosen.
✔ Linux (LF): Works as expected. Text of the first Markdown header is displayed.
❌ Windows (CRLF): Original filename and text of the first Markdown header is displayed.
❌ macOS (CR): Original filename is displayed. It's also missing the "Hello" text.
Here is a repro repository:
https://github.com/andgeno/docusaurus-repro-newline-encoding-bug
See the second commit for the actual demo files involved.
Some screenshots:
Reproducible demo
https://github.com/andgeno/docusaurus-repro-newline-encoding-bug
Steps to reproduce
Expected behavior
Titles should render the same in all cases.
Actual behavior
Titles render wrong depending on chosen newline format.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: