Automattic / Automattic/simplenote-electron
Incorrect rendering of paragraphs with line breaks
- Dominant language
- TypeScript
- Stars
- 5.3k
- Forks
- 588
- Avg merge
- 9h 45m
- Merged PRs (30d)
- 4
Description
### Expected
Line breaks within a paragraph in Markdown source should be ignored.
### Observed
Line breaks within a paragraph are displayed.
The text is not properly wrapped.
### Reproduced
1. Create a Markdown file, say "foo.md", with three lines of text with no leading or trailing whitespace:
Line one
Line two
Line three
2. Load "foo.md" into SimpleNote
3. Observe that the file is rendered as three separate lines.
It should be displayed as "Line one Line two Line three".
I see this error in the Windows and Linux apps and in the web interface.
The Android app behaves correctly.
For more details, see my GitHub repo:
https://github.com/Keith-S-Thompson/markdown-linewrap
### Where did you see the bug
- System Make:
- System Model:
- OS: Windows, Linux
- OS version: Windows 11, Ubuntu 24.04.2 LTS
- Browser (if applicable): Chrome
- Browser version (if applicable): 133.0.6943.143
- Simplenote app version: 2.23.0 (Windows), 2.22.1 (Ubuntu)
Contributor guide
Research direction
Start by creating the described foo.md file and loading it in the Windows or Linux app and web interface, then compare the result with Android. Use the linked markdown-linewrap repository and the existing Markdown rendering entry points to locate the discrepancy; done means consecutive source lines render as one wrapped paragraph.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- markdown, typescript
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100