-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
Closed
Closed
Copy link
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 executionstatus: needs triageThis issue has not been triaged by maintainersThis issue has not been triaged by maintainers
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.
- I have read the console error message carefully (if applicable).
Description
extra empty line was rendered with // highlight-end at end of code blocks
Reproducible demo
No response
Steps to reproduce
try this markdown
```js String foo = "bar" // highlight-start /... 这里可以写很多注释 甚至可以包含 // 行注释 或者 /** 块注释 */ // highlight-end ```
there will be an extra empty line at end of code blocks like this:
but if I set the end line in this style, the result is corrent:
```js String foo = "bar" // highlight-start /... 这里可以写很多注释 甚至可以包含 // 行注释 // highlight-end // highlight-next-line 或者 /** 块注释 */ ```
Expected behavior
no extra line was rendered
Actual behavior
an extra line was rendered
Your environment
- Docusaurus version used: 3.7.0
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 executionstatus: needs triageThis issue has not been triaged by maintainersThis issue has not been triaged by maintainers

