Have you read the Contributing Guidelines on issues?
Prerequisites
Description
On Mozilla Firefox when selecting a line in the code block using a triple click, it selects it fine. But if you copy it, it copies both the line you selected and one line above. This is really annoying when copy&pasting specific lines for example in bash scripts or config files. Using triple click in normal text paragraphs works fine.
Reproducible demo
No response
Steps to reproduce
- Open a docusaurus website containing code blocks with multiple lines, e.g. https://docusaurus.io/docs/next/cli
- Select a line of code using triple-click
- Copy it
- Paste it somewhere
Expected behavior
The copied line is pasted.
Actual behavior
Two lines are pasted: The copied line and one before.
Your environment
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
On Mozilla Firefox when selecting a line in the code block using a triple click, it selects it fine. But if you copy it, it copies both the line you selected and one line above. This is really annoying when copy&pasting specific lines for example in bash scripts or config files. Using triple click in normal text paragraphs works fine.
Reproducible demo
No response
Steps to reproduce
Expected behavior
The copied line is pasted.
Actual behavior
Two lines are pasted: The copied line and one before.
Your environment
Self-service