mirror of
https://github.com/outline/outline.git
synced 2026-06-13 11:25:03 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user