Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting
| for (let i = 0; i < lines.length; i++) { | ||
| const rawLine = lines[i]; | ||
| const trimmedRight = rawLine.replace(/\s+$/, ''); | ||
| const trimmed = trimmedRight.trim(); |
There was a problem hiding this comment.
Preserve Markdown hard line breaks
The formatter unconditionally removes trailing whitespace from every line (rawLine.replace(/\s+$/, '')). In Markdown, a line ending with two spaces is a deliberate hard line break and should be preserved. Running Ctrl+Shift+F on content that uses this convention (e.g. "First line␠␠\nSecond line") will erase the spaces and change the rendered output by merging the lines. The formatter should either keep the double spaces or translate them to an explicit <br>/\ escape instead of stripping them.
Useful? React with 👍 / 👎.
Summary
Testing
https://chatgpt.com/codex/tasks/task_e_68f0765b9bc483308febcb240d24fd80