fix: Extra newlines in pasted code blocks (#10958)

* fix: Extra newlines in pasted code blocks

This code is super old, came across with the old markdown editor.

It seems to not have any real effect on well-formatted markdown

* Add tests for normalizePastedMarkdown internal logic (#10959)

* Initial plan

* Add comprehensive tests for normalizePastedMarkdown

Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com>

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com>
This commit is contained in:
Tom Moor
2025-12-18 18:11:55 -05:00
committed by GitHub
parent 9a3821d806
commit 2f9b30c30c
4 changed files with 172 additions and 12 deletions
+3 -3
View File
@@ -63,8 +63,8 @@ yarn install
2. Public static methods
3. Public variables
4. Public methods
6. Protected variables & methods
8. Private variables & methods
5. Protected variables & methods
6. Private variables & methods
### Exports
@@ -156,7 +156,7 @@ yarn test path/to/test.spec.ts
- Write unit tests for utilities and business logic in a collocated .test.ts file.
- Do not create new test directories
- Mock external dependencies appropriately in __mocks__ folder.
- Mock external dependencies appropriately in **mocks** folder.
- Aim for high code coverage but focus on critical paths.
## Code Quality